org.objectweb.speedo.pm.lib
Class SpeedoProxyManagerInstanciator
java.lang.Object
org.objectweb.speedo.pm.lib.SpeedoProxyManagerInstanciator
- public class SpeedoProxyManagerInstanciator
- extends java.lang.Object
- Author:
- S.Chassande-Barrioz
Method Summary |
void |
bindFc(java.lang.String c,
java.lang.Object s)
|
java.lang.Object |
createResource(java.lang.Object o)
Creates a new PoolResource .
|
void |
destroyResource(java.lang.Object resource)
It removes the ProxyManager and the Transaction components from the
Speedo composite. |
java.lang.String |
getFcState()
|
java.lang.String[] |
listFc()
|
java.lang.Object |
lookupFc(java.lang.String c)
|
boolean |
matchResource(java.lang.Object resource,
java.lang.Object o)
|
void |
startFc()
|
void |
stopFc()
|
void |
unbindFc(java.lang.String c)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONNECTION_HOLDER_FACTORY_BINDING
public static final java.lang.String CONNECTION_HOLDER_FACTORY_BINDING
- See Also:
- Constant Field Values
COMPONENT_BINDING
public static final java.lang.String COMPONENT_BINDING
- See Also:
- Constant Field Values
PM_TEMPLATE
public static final java.lang.String PM_TEMPLATE
- See Also:
- Constant Field Values
T_TEMPLATE
public static final java.lang.String T_TEMPLATE
- See Also:
- Constant Field Values
SpeedoProxyManagerInstanciator
public SpeedoProxyManagerInstanciator()
getFcState
public java.lang.String getFcState()
startFc
public void startFc()
throws IllegalLifeCycleException
- Throws:
IllegalLifeCycleException
stopFc
public void stopFc()
throws IllegalLifeCycleException
- Throws:
IllegalLifeCycleException
listFc
public java.lang.String[] listFc()
lookupFc
public java.lang.Object lookupFc(java.lang.String c)
bindFc
public void bindFc(java.lang.String c,
java.lang.Object s)
unbindFc
public void unbindFc(java.lang.String c)
createResource
public java.lang.Object createResource(java.lang.Object o)
throws PoolException
- Creates a new
PoolResource
.
This methos is invoked by the owned Pool
.
A new SpeedoProxyManager and a new SpeedoTransaction component are
created, and added into the Speedo composite.
- Parameters:
o
- params used to build a new PoolResource
- Returns:
- the build
SpeedoProxyManager
- Throws:
PoolException
matchResource
public boolean matchResource(java.lang.Object resource,
java.lang.Object o)
destroyResource
public void destroyResource(java.lang.Object resource)
- It removes the ProxyManager and the Transaction components from the
Speedo composite.
- Parameters:
resource
- is the ProxyManager to destroy.