|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.speedo.pm.lib.POManagerSwitchImpl
public class POManagerSwitchImpl
This class is an implementation of the POManagerSwitchItf based on the use of a ThreadLocal field. This field contains an instance of POManagerItf of an ArrayList of POManagerItf. A POManagerSwitch is a fractal component without bindings.
Field Summary | |
---|---|
static java.lang.String |
BIND_ERROR_MSG
|
protected java.lang.ThreadLocal |
pms
|
Constructor Summary | |
---|---|
POManagerSwitchImpl()
|
Method Summary | |
---|---|
void |
bind(POManagerItf pm)
It assignes a POManagerItf to the current context. |
void |
clear()
It clears the list of POManagerItf for the current context. |
java.util.Collection |
entries()
|
POManagerItf |
lookup(POManagerFactoryItf pmf)
|
boolean |
unbind(POManagerFactoryItf pmf)
It clears the POManagerItf associated to a POManagerFactoryItf for the current context |
boolean |
unbind(POManagerItf pm)
It clears a POManagerItf 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 POManagerSwitchImpl()
Method Detail |
---|
public POManagerItf lookup(POManagerFactoryItf pmf)
lookup
in interface POManagerSwitchItf
pmf
- is persistent manager factory which manages the returned
po manager.
public void bind(POManagerItf pm)
bind
in interface POManagerSwitchItf
pm
- is the POManagerItfpublic void clear()
clear
in interface POManagerSwitchItf
public boolean unbind(POManagerItf pm)
unbind
in interface POManagerSwitchItf
public boolean unbind(POManagerFactoryItf pmf)
POManagerSwitchItf
unbind
in interface POManagerSwitchItf
public java.util.Collection entries()
entries
in interface POManagerSwitchItf
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |