Class SingletonComponent
- java.lang.Object
-
- org.jboss.as.ee.component.BasicComponent
-
- org.jboss.as.ejb3.component.EJBComponent
-
- org.jboss.as.ejb3.component.session.SessionBeanComponent
-
- org.jboss.as.ejb3.component.singleton.SingletonComponent
-
- All Implemented Interfaces:
Component,org.jboss.as.server.suspend.ServerActivityCallback
public class SingletonComponent extends SessionBeanComponent
Componentrepresenting aSingletonJakarta Enterprise Beans.- Author:
- Jaikiran Pai
-
-
Field Summary
-
Fields inherited from class org.jboss.as.ejb3.component.session.SessionBeanComponent
beanLevelAccessTimeout
-
-
Constructor Summary
Constructors Constructor Description SingletonComponent(SingletonComponentCreateService singletonComponentCreateService, List<org.jboss.msc.service.ServiceName> dependsOn)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddone()AccessTimeoutDetailsgetAccessTimeout(Method method)AllowedMethodsInformationgetAllowedMethodsInformation()SingletonComponentInstancegetComponentInstance()AccessTimeoutDetailsgetDefaultAccessTimeout()ReadWriteLockgetLock()jakarta.ejb.LockTypegetLockType(Method method)protected BasicComponentInstanceinstantiateComponentInstance(org.jboss.invocation.Interceptor preDestroyInterceptor, Map<Method,org.jboss.invocation.Interceptor> methodInterceptors, Map<Object,Object> context)voidstart()-
Methods inherited from class org.jboss.as.ejb3.component.session.SessionBeanComponent
getAsynchronousExecutor, getBusinessObject, getEJBLocalObject, getEJBObject, getRollbackOnly, setRollbackOnly
-
Methods inherited from class org.jboss.as.ejb3.component.EJBComponent
createViewInstanceProxy, createViewInstanceProxy, getApplicationException, getApplicationName, getCallerPrincipal, getComponentDescription, getControlPoint, getCurrentTransactionAttribute, getDistinctName, getEarApplicationName, getEJBHome, getEJBLocalHome, getEjbLocalObjectType, getEjbLocalObjectViewServiceName, getEjbObjectType, getEjbObjectViewServiceName, getEjbSuspendHandlerService, getIdentityOutflowFunction, getIncomingRunAsIdentity, getInvocationMetrics, getModuleName, getSecurityDomain, getSecurityMetaData, getShutDownInterceptorFactory, getTimeoutInterceptors, getTimeoutMethod, getTimerService, getTransactionAttributeType, getTransactionAttributeType, getTransactionAttributeType, getTransactionManager, getTransactionSynchronizationRegistry, getTransactionTimeout, getTransactionTimeout, getUserTransaction, init, isBeanManagedTransaction, isCallerInRole, isExceptionLoggingEnabled, isSecurityDomainKnown, isStatisticsEnabled, isTransactionAttributeTypeExplicit, lookup, setIncomingRunAsIdentity, stop
-
Methods inherited from class org.jboss.as.ee.component.BasicComponent
componentInstanceCreated, constructComponentInstance, constructComponentInstance, createInstance, createInstance, createInterceptors, getComponentClass, getComponentName, getCreateServiceName, getInstance, getNamespaceContextSelector, serviceNameOf, toString, waitForComponentStart
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jboss.as.ee.component.Component
isRemotable
-
-
-
-
Constructor Detail
-
SingletonComponent
public SingletonComponent(SingletonComponentCreateService singletonComponentCreateService, List<org.jboss.msc.service.ServiceName> dependsOn)
Construct a new instance.- Parameters:
singletonComponentCreateService- the component configurationdependsOn-
-
-
Method Detail
-
instantiateComponentInstance
protected BasicComponentInstance instantiateComponentInstance(org.jboss.invocation.Interceptor preDestroyInterceptor, Map<Method,org.jboss.invocation.Interceptor> methodInterceptors, Map<Object,Object> context)
- Overrides:
instantiateComponentInstancein classBasicComponent
-
getComponentInstance
public SingletonComponentInstance getComponentInstance()
- Returns:
- the
SingletonComponentInstance, lazily creating it if necessary.
-
start
public void start()
- Specified by:
startin interfaceComponent- Overrides:
startin classBasicComponent
-
done
public void done()
- Specified by:
donein interfaceorg.jboss.as.server.suspend.ServerActivityCallback- Overrides:
donein classEJBComponent
-
getLockType
public jakarta.ejb.LockType getLockType(Method method)
-
getAccessTimeout
public AccessTimeoutDetails getAccessTimeout(Method method)
-
getDefaultAccessTimeout
public AccessTimeoutDetails getDefaultAccessTimeout()
-
getLock
public ReadWriteLock getLock()
-
getAllowedMethodsInformation
public AllowedMethodsInformation getAllowedMethodsInformation()
- Overrides:
getAllowedMethodsInformationin classEJBComponent
-
-