org.objectweb.speedo.pm.lib
Class POManagerInstanciatorImpl
java.lang.Object
org.objectweb.speedo.pm.lib.POManagerInstanciatorImpl
- All Implemented Interfaces:
- AttributeController, BindingController, LifeCycleController, PoolMatchFactory, POManagerInstanciatorAC
public class POManagerInstanciatorImpl
- extends java.lang.Object
- implements PoolMatchFactory, BindingController, LifeCycleController, POManagerInstanciatorAC
is a primitive components in charge of the POManagerItf and the TransactionItf
allocation. It exports the PoolMatchFactory interface in order to be used by
a Pool as Factory of pool resource. The pool resource is POManagerItf
instances.
It uses a ConnectionHolderFactory for allocating ConnectionHolder to the
created TransactionItf components.
- Author:
- S.Chassande-Barrioz
- See Also:
POManagerItf
,
TransactionItf
,
ConnectionHolder
,
ConnectionHolderFactory
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
POManagerInstanciatorImpl
public POManagerInstanciatorImpl()
getFcState
public java.lang.String getFcState()
- Specified by:
getFcState
in interface LifeCycleController
startFc
public void startFc()
throws IllegalLifeCycleException
- Startes the component by computing the components array.
- Specified by:
startFc
in interface LifeCycleController
- Throws:
IllegalLifeCycleException
stopFc
public void stopFc()
throws IllegalLifeCycleException
- Clears the components array.
- Specified by:
stopFc
in interface LifeCycleController
- Throws:
IllegalLifeCycleException
listFc
public java.lang.String[] listFc()
- Specified by:
listFc
in interface BindingController
lookupFc
public java.lang.Object lookupFc(java.lang.String c)
- Specified by:
lookupFc
in interface BindingController
bindFc
public void bindFc(java.lang.String c,
java.lang.Object s)
- Specified by:
bindFc
in interface BindingController
unbindFc
public void unbindFc(java.lang.String c)
- Specified by:
unbindFc
in interface BindingController
getPOManagerTemplateName
public java.lang.String getPOManagerTemplateName()
- Specified by:
getPOManagerTemplateName
in interface POManagerInstanciatorAC
setPOManagerTemplateName
public void setPOManagerTemplateName(java.lang.String n)
- Specified by:
setPOManagerTemplateName
in interface POManagerInstanciatorAC
getTransactionTemplateName
public java.lang.String getTransactionTemplateName()
- Specified by:
getTransactionTemplateName
in interface POManagerInstanciatorAC
setTransactionTemplateName
public void setTransactionTemplateName(java.lang.String n)
- Specified by:
setTransactionTemplateName
in interface POManagerInstanciatorAC
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 JDOPOManager and a new JDOTransaction component are
created, and added into the Speedo composite.
- Specified by:
createResource
in interface PoolMatchFactory
- Parameters:
o
- params used to build a new PoolResource
- Returns:
- the build
JDOPOManager
- Throws:
PoolException
matchResource
public boolean matchResource(java.lang.Object resource,
java.lang.Object o)
- Specified by:
matchResource
in interface PoolMatchFactory
destroyResource
public void destroyResource(java.lang.Object resource)
- It removes the POManagerItf and the JDOTransactionItf components from the
Speedo composite.
- Specified by:
destroyResource
in interface PoolMatchFactory
- Parameters:
resource
- is the POManagerItf to destroy.