|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.jboss.ejb.plugins.SingletonStatelessSessionInstancePool
Singleton pool for session beans. This lets you have singletons in EJB!
| Constructor Summary | |
SingletonStatelessSessionInstancePool()
|
|
| Method Summary | |
void |
add()
Add a instance in the pool |
protected EnterpriseContext |
create(java.lang.Object instance,
Container con)
|
void |
destroy()
|
void |
discard(EnterpriseContext ctx)
Discard an anonymous instance after invocation. |
void |
free(EnterpriseContext ctx)
Return an instance after invocation. |
EnterpriseContext |
get()
Get the singleton instance |
int |
getCurrentSize()
Return the size of the pool. |
int |
getMaxSize()
Get the maximum size of the pool. |
void |
importXml(org.w3c.dom.Element element)
|
void |
init()
|
void |
setContainer(Container c)
Set the callback to the container. |
void |
start()
|
void |
stop()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SingletonStatelessSessionInstancePool()
| Method Detail |
public void setContainer(Container c)
setContainer in interface ContainerPluginc -
public void init()
throws java.lang.Exception
init in interface Service
public void start()
throws java.lang.Exception
start in interface Servicepublic void stop()
stop in interface Servicepublic void destroy()
destroy in interface Service
public EnterpriseContext get()
throws java.lang.Exception
get in interface InstancePooljava.rmi.RemoteException - public void free(EnterpriseContext ctx)
free in interface InstancePoolctx - public void discard(EnterpriseContext ctx)
InstancePooldiscard in interface InstancePoolorg.jboss.ejb.InstancePoolctx -
public void add()
throws java.lang.Exception
add in interface InstancePoolorg.jboss.ejb.InstancePooljava.lang.Exception - when an Instance can not be instantiatedpublic int getCurrentSize()
InstancePoolgetCurrentSize in interface InstancePoolorg.jboss.ejb.InstancePoolpublic int getMaxSize()
InstancePoolgetMaxSize in interface InstancePoolorg.jboss.ejb.InstancePool
public void importXml(org.w3c.dom.Element element)
throws java.lang.Exception
importXml in interface XmlLoadable
protected EnterpriseContext create(java.lang.Object instance,
Container con)
throws java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||