public class SingletonComponent extends SessionBeanComponent implements LockableComponent
Component
representing a Singleton
EJB.beanLevelAccessTimeout
Constructor and Description |
---|
SingletonComponent(SingletonComponentCreateService singletonComponentCreateService,
List<org.jboss.msc.service.ServiceName> dependsOn)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
AccessTimeoutDetails |
getAccessTimeout(Method method)
Returns the
AccessTimeoutDetails applicable for the passed method . |
AllowedMethodsInformation |
getAllowedMethodsInformation() |
SingletonComponentInstance |
getComponentInstance() |
AccessTimeoutDetails |
getDefaultAccessTimeout()
Returns the default applicable
AccessTimeoutDetails for a component. |
javax.ejb.LockType |
getLockType(Method method)
Returns the
LockType applicable to the passed method . |
protected BasicComponentInstance |
instantiateComponentInstance(AtomicReference<ManagedReference> instanceReference,
org.jboss.invocation.Interceptor preDestroyInterceptor,
Map<Method,org.jboss.invocation.Interceptor> methodInterceptors,
org.jboss.invocation.InterceptorFactoryContext interceptorContext)
Responsible for instantiating the
BasicComponentInstance . |
void |
start()
Start operation called when the Component is available.
|
void |
stop(org.jboss.msc.service.StopContext stopContext)
Stop operation called when the Component is no longer available.
|
getAsynchronousExecutor, getBusinessObject, getEJBLocalObject, getEJBObject, getRollbackOnly, setRollbackOnly
createViewInstanceProxy, createViewInstanceProxy, getApplicationException, getApplicationName, getCallerPrincipal, getCurrentTransactionAttribute, getDistinctName, getEarApplicationName, getEJBHome, getEjbHomeViewServiceName, getEJBLocalHome, getEjbLocalHomeViewServiceName, getEjbLocalObjectType, getEjbLocalObjectViewServiceName, getEjbObjectType, getEjbObjectViewServiceName, getEjbRemoteTransactionsRepository, getModuleName, getSecurityManager, getSecurityMetaData, getTimeoutInterceptors, getTimeoutMethod, getTimerService, getTransactionAttributeType, getTransactionManager, getTransactionSynchronizationRegistry, getTransactionTimeout, getUserTransaction, isCallerInRole, lookup
componentInstanceCreated, constructComponentInstance, createInstance, createInstance, getComponentClass, getComponentName, getCreateServiceName, getNamespaceContextSelector, toString, waitForComponentStart
public SingletonComponent(SingletonComponentCreateService singletonComponentCreateService, List<org.jboss.msc.service.ServiceName> dependsOn)
singletonComponentCreateService
- the component configurationdependsOn
- protected BasicComponentInstance instantiateComponentInstance(AtomicReference<ManagedReference> instanceReference, org.jboss.invocation.Interceptor preDestroyInterceptor, Map<Method,org.jboss.invocation.Interceptor> methodInterceptors, org.jboss.invocation.InterceptorFactoryContext interceptorContext)
BasicComponent
BasicComponentInstance
. This method is *not* responsible for
handling the post construct activities like injection and lifecycle invocation. That is handled by
BasicComponent.constructComponentInstance(ManagedReference, boolean, InterceptorFactoryContext)
.
instantiateComponentInstance
in class BasicComponent
public SingletonComponentInstance getComponentInstance()
public void start()
BasicComponent
start
in interface Component
start
in class BasicComponent
public void stop(org.jboss.msc.service.StopContext stopContext)
BasicComponent
stop
in interface Component
stop
in class BasicComponent
stopContext
- the stop context for the component servicepublic javax.ejb.LockType getLockType(Method method)
LockableComponent
LockType
applicable to the passed method
.
If there is no explicit LockType
specified for the passed method
then this method
must return the LockType
applicable at the component level or the default applicable LockType
.
This method must *not* return a null value.getLockType
in interface LockableComponent
method
- The method for which the LockType
is being queried. Cannot be null.public AccessTimeoutDetails getAccessTimeout(Method method)
LockableComponent
AccessTimeoutDetails
applicable for the passed method
.getAccessTimeout
in interface LockableComponent
public AccessTimeoutDetails getDefaultAccessTimeout()
LockableComponent
AccessTimeoutDetails
for a component. This value will be used if a method doesn't
explicitly specify an AccessTimeoutDetails
getDefaultAccessTimeout
in interface LockableComponent
public AllowedMethodsInformation getAllowedMethodsInformation()
getAllowedMethodsInformation
in class EJBComponent
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.