|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.speedo.pm.lib.SpeedoProxyManagerSwitch
This class is an implementation of the ProxyManagerSwitch based on the use of a ThreadLocal field. This field contains an instance of ProxyManager of an ArrayList of ProxyManager. A SpeedoProxyManagerSwitch is a fractal component which have no bindings.
Field Summary | |
---|---|
static java.lang.String |
BIND_ERROR_MSG
|
protected java.lang.ThreadLocal |
pms
|
Constructor Summary | |
---|---|
SpeedoProxyManagerSwitch()
|
Method Summary | |
---|---|
void |
bind(ProxyManager pm)
It assignes a ProxyManager to the current context. |
void |
clear()
It clears the list of ProxyManager for the current context. |
java.util.Collection |
entries()
|
ProxyManager |
lookup(ProxyManagerFactory pmf)
|
boolean |
unbind(ProxyManager pm)
It clears a ProxyManager for the current context. |
boolean |
unbind(ProxyManagerFactory pmf)
It clears the ProxyManager associated to a ProxyManagerFactory for the current context |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.ThreadLocal pms
public static final java.lang.String BIND_ERROR_MSG
Constructor Detail |
public SpeedoProxyManagerSwitch()
Method Detail |
public ProxyManager lookup(ProxyManagerFactory pmf)
lookup
in interface ProxyManagerSwitch
pmf
- is persistent manager factory which manages the returned
proxy manager.
public void bind(ProxyManager pm)
bind
in interface ProxyManagerSwitch
pm
- is the ProxyManagerpublic void clear()
clear
in interface ProxyManagerSwitch
public boolean unbind(ProxyManager pm)
unbind
in interface ProxyManagerSwitch
public boolean unbind(ProxyManagerFactory pmf)
ProxyManagerSwitch
unbind
in interface ProxyManagerSwitch
public java.util.Collection entries()
entries
in interface ProxyManagerSwitch
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |