|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jboss.ejb.plugins.EnterpriseInstanceCache | +--org.jboss.ejb.plugins.StatefulSessionInstanceCache
Cache for stateful session beans.
Inner classes inherited from class org.jboss.ejb.plugins.EnterpriseInstanceCache |
EnterpriseInstanceCache.PassivationHelper |
Constructor Summary | |
StatefulSessionInstanceCache()
|
Method Summary | |
protected EnterpriseContext |
acquireContext()
Acquires an EnterpriseContext from the pool |
protected void |
activate(EnterpriseContext ctx)
Activates the given EnterpriseContext |
protected boolean |
canPassivate(EnterpriseContext ctx)
Returns whether the given context can be passivated or not |
protected void |
freeContext(EnterpriseContext ctx)
Frees the given EnterpriseContext to the pool |
protected Container |
getContainer()
Returns the container for this cache. |
protected java.lang.Object |
getKey(EnterpriseContext ctx)
Returns the key used by the cache to map the given context |
protected void |
passivate(EnterpriseContext ctx)
Passivates the given EnterpriseContext |
void |
setContainer(Container c)
This callback is set by the container so that the plugin may access it |
protected void |
setKey(java.lang.Object id,
EnterpriseContext ctx)
Sets the given id as key for the given context |
Methods inherited from class org.jboss.ejb.plugins.EnterpriseInstanceCache |
destroy, get, getCache, getCacheLock, getLock, importXml, init, insert, release, remove, removeLock, schedulePassivation, start, stop, unschedulePassivation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StatefulSessionInstanceCache()
Method Detail |
public void setContainer(Container c)
ContainerPlugin
org.jboss.ejb.ContainerPlugin
con
- the container using this pluginprotected Container getContainer()
EnterpriseInstanceCache
getContainer
in class EnterpriseInstanceCache
protected void passivate(EnterpriseContext ctx) throws java.rmi.RemoteException
EnterpriseInstanceCache
passivate
in class EnterpriseInstanceCache
protected void activate(EnterpriseContext ctx) throws java.rmi.RemoteException
EnterpriseInstanceCache
activate
in class EnterpriseInstanceCache
protected EnterpriseContext acquireContext() throws java.lang.Exception
EnterpriseInstanceCache
acquireContext
in class EnterpriseInstanceCache
protected void freeContext(EnterpriseContext ctx)
EnterpriseInstanceCache
freeContext
in class EnterpriseInstanceCache
protected java.lang.Object getKey(EnterpriseContext ctx)
EnterpriseInstanceCache
getKey
in class EnterpriseInstanceCache
protected void setKey(java.lang.Object id, EnterpriseContext ctx)
EnterpriseInstanceCache
setKey
in class EnterpriseInstanceCache
protected boolean canPassivate(EnterpriseContext ctx)
EnterpriseInstanceCache
canPassivate
in class EnterpriseInstanceCache
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |