|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.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 |
void |
create()
|
protected EnterpriseContext |
create(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(Element element)
|
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 create()
throws Exception
create in interface org.jboss.system.ServiceException
public void start()
throws Exception
start in interface org.jboss.system.ServiceExceptionpublic void stop()
stop in interface org.jboss.system.Servicepublic void destroy()
destroy in interface org.jboss.system.Service
public EnterpriseContext get()
throws Exception
get in interface InstancePoolExceptionpublic void free(EnterpriseContext ctx)
free in interface InstancePoolctx - public void discard(EnterpriseContext ctx)
InstancePool
discard in interface InstancePoolctx - The context to discard.
public void add()
throws Exception
Exceptionpublic int getCurrentSize()
InstancePool
getCurrentSize in interface InstancePoolpublic int getMaxSize()
InstancePool
getMaxSize in interface InstancePool
public void importXml(Element element)
throws org.jboss.deployment.DeploymentException
importXml in interface XmlLoadableorg.jboss.deployment.DeploymentException
protected EnterpriseContext create(Object instance,
Container con)
throws Exception
Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||