|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | 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!
Field Summary |
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 ContainerPlugin
c
- public void create() throws Exception
create
in interface org.jboss.system.Service
Exception
public void start() throws Exception
start
in interface org.jboss.system.Service
Exception
public void stop()
stop
in interface org.jboss.system.Service
public void destroy()
destroy
in interface org.jboss.system.Service
public EnterpriseContext get() throws Exception
get
in interface InstancePool
Exception
public void free(EnterpriseContext ctx)
free
in interface InstancePool
ctx
- public void discard(EnterpriseContext ctx)
InstancePool
discard
in interface InstancePool
ctx
- The context to discard.public void add() throws Exception
Exception
public int getCurrentSize()
InstancePool
getCurrentSize
in interface InstancePool
public int getMaxSize()
InstancePool
getMaxSize
in interface InstancePool
public void importXml(Element element) throws org.jboss.deployment.DeploymentException
importXml
in interface XmlLoadable
org.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 |