org.jboss.ejb3.pool
Class AbstractPool
java.lang.Object
org.jboss.ejb3.pool.AbstractPool
- All Implemented Interfaces:
- Pool
- Direct Known Subclasses:
- InfinitePool, StrictMaxPool
public abstract class AbstractPool
- extends java.lang.Object
- implements Pool
The base of all pool implementations.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
injectors
protected Injector[] injectors
container
protected Container container
AbstractPool
public AbstractPool()
getCreateCount
public int getCreateCount()
- Specified by:
getCreateCount in interface Pool
getRemoveCount
public int getRemoveCount()
- Specified by:
getRemoveCount in interface Pool
initialize
public void initialize(Container container,
int maxSize,
long timeout)
- Specified by:
initialize in interface Pool
setMaxSize
public abstract void setMaxSize(int maxSize)
- Specified by:
setMaxSize in interface Pool
create
@Deprecated
protected BeanContext<?> create()
- Deprecated.
create
protected BeanContext<?> create(java.lang.Class[] initTypes,
java.lang.Object[] initValues)
remove
public void remove(BeanContext ctx)
- Description copied from interface:
Pool
- Destroy bean. ejbRemove callback is executed
- Specified by:
remove in interface Pool
discard
public void discard(BeanContext<?> ctx)
- Description copied from interface:
Pool
- Discard the bean. Called in different context as remove. If there is a system exception this is
called.
- Specified by:
discard in interface Pool
setInjectors
public void setInjectors(Injector[] injectors)
- Specified by:
setInjectors in interface Pool
doRemove
protected void doRemove(BeanContext<?> ctx)
- Remove the bean context and invoke any callbacks
and track the remove count
- Parameters:
ctx -