|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.pool.BasePoolableObjectFactory
com.ca.jcs.stub.StubMetaConnectionFactory
public class StubMetaConnectionFactory
Sample 'dummy' connection factory used by the sample connection pooling class Shows connection factory interface $Id: StubMetaConnectionFactory.java 42493 2009-05-11 06:00:12Z hopno02 $
| Constructor Summary | |
|---|---|
StubMetaConnectionFactory(Attributes attrs)
Called by the custom connection pooling class and given all available connector level attributes The attributes should be all the context that the factory needs to create connections |
|
| Method Summary | |
|---|---|
void |
activate()
Optional factory activation method can be implemented |
void |
deactivate()
* Optional factory de-activation method can be implemented |
void |
destroyObject(Object o)
This is where a connection is teared down from the pool |
Object |
makeObject()
This is where a connection gets created and given to the pool |
| Methods inherited from class org.apache.commons.pool.BasePoolableObjectFactory |
|---|
activateObject, passivateObject, validateObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StubMetaConnectionFactory(Attributes attrs)
| Method Detail |
|---|
public Object makeObject()
throws Exception
makeObject in interface PoolableObjectFactorymakeObject in class BasePoolableObjectFactoryException
public void destroyObject(Object o)
throws Exception
destroyObject in interface PoolableObjectFactorydestroyObject in class BasePoolableObjectFactoryo -
Exception
public void activate()
throws NamingException
activate in interface ActivatableNamingException
public void deactivate()
throws NamingException
deactivate in interface ActivatableNamingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||