|
||||||||||||
| 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 ProxyManagerSwitchpmf - is persistent manager factory which manages the returned
proxy manager.
public void bind(ProxyManager pm)
bind in interface ProxyManagerSwitchpm - is the ProxyManagerpublic void clear()
clear in interface ProxyManagerSwitchpublic boolean unbind(ProxyManager pm)
unbind in interface ProxyManagerSwitchpublic boolean unbind(ProxyManagerFactory pmf)
ProxyManagerSwitch
unbind in interface ProxyManagerSwitchpublic java.util.Collection entries()
entries in interface ProxyManagerSwitch
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||