JBoss API: Interface InstanceCache
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The plugin that gives a container a cache for bean instances.
Method Summary | |
EnterpriseContext |
get(java.lang.Object id)
Gets a bean instance from this cache given the identity. |
void |
insert(EnterpriseContext ctx)
Inserts an active bean instance after creation or activation. |
boolean |
isActive(java.lang.Object id)
Checks whether an instance corresponding to a particular id is active |
void |
release(EnterpriseContext ctx)
Releases the given bean instance from this cache. |
void |
remove(java.lang.Object id)
Removes a bean instance from this cache given the identity. |
Methods inherited from interface org.jboss.ejb.ContainerPlugin |
setContainer |
Methods inherited from interface org.jboss.util.Service |
destroy, init, start, stop |
Method Detail |
public EnterpriseContext get(java.lang.Object id) throws java.rmi.RemoteException, java.rmi.NoSuchObjectException
id
- the primary key of the beanjava.rmi.RemoteException
- in case of illegal calls (concurrent / reentrant),
NoSuchObjectException if the bean cannot be found.release(org.jboss.ejb.EnterpriseContext)
public void insert(EnterpriseContext ctx)
ctx
- the EnterpriseContext to insert in the cacheremove(java.lang.Object)
public void release(EnterpriseContext ctx)
ctx
- the EnterpriseContext to releaseget(java.lang.Object)
public void remove(java.lang.Object id)
id
- the pimary key of the beaninsert(org.jboss.ejb.EnterpriseContext)
public boolean isActive(java.lang.Object id)
id
- the pimary key of the beaninsert(org.jboss.ejb.EnterpriseContext)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |