|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.ejb.containers.BaseContainer
com.sun.ejb.containers.AbstractSingletonContainer
public abstract class AbstractSingletonContainer
| Nested Class Summary | |
|---|---|
protected class |
AbstractSingletonContainer.SingletonContextFactory
|
| Nested classes/interfaces inherited from class com.sun.ejb.containers.BaseContainer |
|---|
BaseContainer.ContainerType |
| Field Summary | |
|---|---|
protected ComponentContext |
singletonCtx
|
protected ObjectFactory |
singletonCtxFactory
|
protected boolean |
singletonInitializationFailed
|
protected AtomicBoolean |
singletonInitialized
|
| Fields inherited from interface com.sun.ejb.Container |
|---|
SEC_CHECKED, SEC_EXCLUDED, SEC_NOT_INITIALIZED, SEC_UNCHECKED, secAttrStrings, TX_BEAN_MANAGED, TX_MANDATORY, TX_NEVER, TX_NOT_INITIALIZED, TX_NOT_SUPPORTED, TX_REQUIRED, TX_REQUIRES_NEW, TX_SUPPORTS, txAttrStrings |
| Constructor Summary | |
|---|---|
protected |
AbstractSingletonContainer(EjbDescriptor desc,
ClassLoader loader)
This constructor is called from the JarManager when a Jar is deployed. |
| Method Summary | |
|---|---|
protected EJBContextImpl |
_constructEJBContextImpl(Object instance)
|
void |
activateEJB(Object ctx,
Object instanceKey)
|
protected void |
checkInit()
|
protected void |
checkUnfinishedTx(Transaction prevTx,
EjbInvocation inv)
|
EJBLocalObjectImpl |
createEJBLocalBusinessObjectImpl(boolean localBeanView)
Called during internal creation of session bean |
EJBLocalObjectImpl |
createEJBLocalObjectImpl()
Called during client creation request through EJB LocalHome view. |
EJBObjectImpl |
createEJBObjectImpl()
|
EJBObjectImpl |
createRemoteBusinessObjectImpl()
|
protected void |
doConcreteContainerShutdown(boolean appBeingUndeployed)
TODO public void appendStats(StringBuffer sbuf) { sbuf.append("\nSingletonContainer: ") .append("CreateCount=").append(statCreateCount).append("; ") .append("RemoveCount=").append(statRemoveCount).append("; ") .append("]"); } |
int |
getMaxPoolSize()
|
long |
getMethodReadyCount()
|
String |
getMonitorAttributeValues()
|
protected EjbMonitoringStatsProvider |
getMonitoringStatsProvider(String appName,
String modName,
String ejbName)
|
int |
getSteadyPoolSize()
|
protected void |
initializeHome()
Called from the ContainerFactory during initialization. |
ComponentContext |
instantiateSingletonInstance()
|
void |
onReady()
Called when server instance is Ready |
boolean |
passivateEJB(ComponentContext context)
|
protected void |
registerMonitorableComponents()
|
void |
setSingletonLifeCycleManager(SingletonLifeCycleManager lcm)
|
boolean |
userTransactionMethodsAllowed(ComponentInvocation inv)
EJB spec makes a distinction between access to the UserTransaction object itself and access to its methods. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected ObjectFactory singletonCtxFactory
protected AtomicBoolean singletonInitialized
protected boolean singletonInitializationFailed
protected volatile ComponentContext singletonCtx
| Constructor Detail |
|---|
protected AbstractSingletonContainer(EjbDescriptor desc,
ClassLoader loader)
throws Exception
Exception - on error| Method Detail |
|---|
public String getMonitorAttributeValues()
protected void initializeHome()
throws Exception
BaseContainer
Exception
protected void checkUnfinishedTx(Transaction prevTx,
EjbInvocation inv)
checkUnfinishedTx in class BaseContainerprotected void registerMonitorableComponents()
registerMonitorableComponents in class BaseContainer
protected EjbMonitoringStatsProvider getMonitoringStatsProvider(String appName,
String modName,
String ejbName)
getMonitoringStatsProvider in class BaseContainerpublic void onReady()
BaseContainer
onReady in interface ContaineronReady in class BaseContainer
public EJBObjectImpl createRemoteBusinessObjectImpl()
throws CreateException,
RemoteException
CreateException
RemoteException
public EJBObjectImpl createEJBObjectImpl()
throws CreateException,
RemoteException
CreateException
RemoteException
public EJBLocalObjectImpl createEJBLocalObjectImpl()
throws CreateException
CreateException
public EJBLocalObjectImpl createEJBLocalBusinessObjectImpl(boolean localBeanView)
throws CreateException
CreateExceptionpublic void setSingletonLifeCycleManager(SingletonLifeCycleManager lcm)
protected void checkInit()
public ComponentContext instantiateSingletonInstance()
protected EJBContextImpl _constructEJBContextImpl(Object instance)
_constructEJBContextImpl in class BaseContainerpublic boolean userTransactionMethodsAllowed(ComponentInvocation inv)
BaseContainer
userTransactionMethodsAllowed in interface ContaineruserTransactionMethodsAllowed in class BaseContainerpublic boolean passivateEJB(ComponentContext context)
public void activateEJB(Object ctx,
Object instanceKey)
protected void doConcreteContainerShutdown(boolean appBeingUndeployed)
doConcreteContainerShutdown in class BaseContainerpublic long getMethodReadyCount()
public int getMaxPoolSize()
public int getSteadyPoolSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||