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, setRollbackOnlycreateViewInstanceProxy, 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, lookupcomponentInstanceCreated, constructComponentInstance, createInstance, createInstance, getComponentClass, getComponentName, getCreateServiceName, getNamespaceContextSelector, toString, waitForComponentStartpublic 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)
BasicComponentBasicComponentInstance. 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 BasicComponentpublic SingletonComponentInstance getComponentInstance()
public void start()
BasicComponentstart in interface Componentstart in class BasicComponentpublic void stop(org.jboss.msc.service.StopContext stopContext)
BasicComponentstop in interface Componentstop in class BasicComponentstopContext - the stop context for the component servicepublic javax.ejb.LockType getLockType(Method method)
LockableComponentLockType 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 LockableComponentmethod - The method for which the LockType is being queried. Cannot be null.public AccessTimeoutDetails getAccessTimeout(Method method)
LockableComponentAccessTimeoutDetails applicable for the passed method.getAccessTimeout in interface LockableComponentpublic AccessTimeoutDetails getDefaultAccessTimeout()
LockableComponentAccessTimeoutDetails for a component. This value will be used if a method doesn't
explicitly specify an AccessTimeoutDetailsgetDefaultAccessTimeout in interface LockableComponentpublic AllowedMethodsInformation getAllowedMethodsInformation()
getAllowedMethodsInformation in class EJBComponentCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.