|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mx.util.JBossNotificationBroadcasterSupport org.jboss.system.ServiceMBeanSupport org.jboss.ejb.plugins.AbstractInstancePool org.jboss.ejb.plugins.SingletonStatelessSessionInstancePool
public class SingletonStatelessSessionInstancePool
Singleton pool for session beans. This lets you have singletons in EJB!
Field Summary |
---|
Fields inherited from class org.jboss.ejb.plugins.AbstractInstancePool |
---|
container, maxSize, pool, reclaim |
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
---|
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean |
---|
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
---|---|
SingletonStatelessSessionInstancePool()
|
Method Summary | |
---|---|
void |
add()
Add a instance in the pool |
void |
create()
|
protected EnterpriseContext |
create(Object instance)
|
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)
XmlLoadable implementation |
void |
start()
|
void |
stop()
|
Methods inherited from class org.jboss.ejb.plugins.AbstractInstancePool |
---|
clear, destroyService, getAvailableCount, getContainer, setContainer |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
---|
createService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, startService, stopService |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
---|
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.system.ServiceMBean |
---|
getName, getState, getStateString, jbossInternalLifecycle |
Constructor Detail |
---|
public SingletonStatelessSessionInstancePool()
Method Detail |
---|
public void create() throws Exception
create
in interface org.jboss.system.Service
create
in class org.jboss.system.ServiceMBeanSupport
Exception
public void start() throws Exception
start
in interface org.jboss.system.Service
start
in class org.jboss.system.ServiceMBeanSupport
Exception
public void stop()
stop
in interface org.jboss.system.Service
stop
in class org.jboss.system.ServiceMBeanSupport
public void destroy()
destroy
in interface org.jboss.system.Service
destroy
in class org.jboss.system.ServiceMBeanSupport
public EnterpriseContext get() throws Exception
get
in interface InstancePool
get
in class AbstractInstancePool
Exception
public void free(EnterpriseContext ctx)
free
in interface InstancePool
free
in class AbstractInstancePool
ctx
- public void discard(EnterpriseContext ctx)
InstancePool
discard
in interface InstancePool
discard
in class AbstractInstancePool
ctx
- The context to discard.public void add() throws Exception
Exception
public int getCurrentSize()
InstancePool
getCurrentSize
in interface InstancePool
getCurrentSize
in interface AbstractInstancePoolMBean
getCurrentSize
in class AbstractInstancePool
public int getMaxSize()
InstancePool
getMaxSize
in interface InstancePool
getMaxSize
in interface AbstractInstancePoolMBean
getMaxSize
in class AbstractInstancePool
public void importXml(Element element) throws org.jboss.deployment.DeploymentException
AbstractInstancePool
importXml
in interface XmlLoadable
importXml
in class AbstractInstancePool
org.jboss.deployment.DeploymentException
protected EnterpriseContext create(Object instance) throws Exception
create
in class AbstractInstancePool
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |