|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.speedo.pm.lib.SpeedoProxyManagerInstanciator
is a primitive components in charge of the ProxyManager and the Transaction allocation. It exports the PoolMatchFactory interface in order to be used by a Pool as Factory of pool resource. The pool resource is the ProxyManager instance. It uses a ConnectionHolderFactory for allocating ConnectionHolder to the created Transaction components.
ProxyManager
,
SpeedoProxyManager
,
Transaction
,
SpeedoTransaction
,
ConnectionHolder
,
ConnectionHolderFactory
Field Summary | |
static java.lang.String |
COMPONENT_BINDING
|
static java.lang.String |
CONNECTION_HOLDER_FACTORY_BINDING
|
static java.lang.String |
PM_TEMPLATE
|
static java.lang.String |
T_TEMPLATE
|
Constructor Summary | |
SpeedoProxyManagerInstanciator()
|
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()
Startes the component by computing the components array. |
void |
stopFc()
Clears the components array. |
void |
unbindFc(java.lang.String c)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String CONNECTION_HOLDER_FACTORY_BINDING
public static final java.lang.String COMPONENT_BINDING
public static final java.lang.String PM_TEMPLATE
public static final java.lang.String T_TEMPLATE
Constructor Detail |
public SpeedoProxyManagerInstanciator()
Method Detail |
public java.lang.String getFcState()
public void startFc() throws IllegalLifeCycleException
IllegalLifeCycleException
public void stopFc() throws IllegalLifeCycleException
IllegalLifeCycleException
public java.lang.String[] listFc()
public java.lang.Object lookupFc(java.lang.String c)
public void bindFc(java.lang.String c, java.lang.Object s)
public void unbindFc(java.lang.String c)
public java.lang.Object createResource(java.lang.Object o) throws PoolException
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.
o
- params used to build a new PoolResource
SpeedoProxyManager
PoolException
public boolean matchResource(java.lang.Object resource, java.lang.Object o)
public void destroyResource(java.lang.Object resource)
resource
- is the ProxyManager to destroy.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |