|
|||||||||
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 ContainerPlugin
c
- public void init() throws java.lang.Exception
init
in interface Service
public void start() throws java.lang.Exception
start
in interface Service
public void stop()
stop
in interface Service
public void destroy()
destroy
in interface Service
public EnterpriseContext get() throws java.lang.Exception
get
in interface InstancePool
java.rmi.RemoteException
- public void free(EnterpriseContext ctx)
free
in interface InstancePool
ctx
- public void discard(EnterpriseContext ctx)
InstancePool
discard
in interface InstancePool
org.jboss.ejb.InstancePool
ctx
- public void add() throws java.lang.Exception
add
in interface InstancePool
org.jboss.ejb.InstancePool
java.lang.Exception
- when an Instance can not be instantiatedpublic int getCurrentSize()
InstancePool
getCurrentSize
in interface InstancePool
org.jboss.ejb.InstancePool
public int getMaxSize()
InstancePool
getMaxSize
in interface InstancePool
org.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 |