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(org.jboss.invocation.Interceptor preDestroyInterceptor,
Map<Method,org.jboss.invocation.Interceptor> methodInterceptors,
Map<Object,Object> context)
Responsible for instantiating the
BasicComponentInstance. |
void |
start()
Start operation called when the Component is available.
|
void |
stop()
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, getInvocationMetrics, getModuleName, getSecurityManager, getSecurityMetaData, getShutDownInterceptorFactory, getTimeoutInterceptors, getTimeoutMethod, getTimerService, getTransactionAttributeType, getTransactionAttributeType, getTransactionManager, getTransactionSynchronizationRegistry, getTransactionTimeout, getTransactionTimeout, getUserTransaction, isBeanManagedTransaction, isCallerInRole, isStatisticsEnabled, lookupcomponentInstanceCreated, constructComponentInstance, constructComponentInstance, createInstance, createInstance, createInterceptors, getComponentClass, getComponentName, getCreateServiceName, getNamespaceContextSelector, serviceNameOf, toString, waitForComponentStartpublic SingletonComponent(SingletonComponentCreateService singletonComponentCreateService, List<org.jboss.msc.service.ServiceName> dependsOn)
singletonComponentCreateService - the component configurationdependsOn - protected BasicComponentInstance instantiateComponentInstance(org.jboss.invocation.Interceptor preDestroyInterceptor, Map<Method,org.jboss.invocation.Interceptor> methodInterceptors, Map<Object,Object> context)
BasicComponentBasicComponentInstance. This method is *not* responsible for
handling the post construct activities like injection and lifecycle invocation. That is handled by
BasicComponent.constructComponentInstance(org.jboss.as.naming.ManagedReference, boolean).
instantiateComponentInstance in class BasicComponentpublic SingletonComponentInstance getComponentInstance()
SingletonComponentInstance, lazily creating it if necessary.public void start()
BasicComponentstart in interface Componentstart in class EJBComponentpublic void stop()
BasicComponentstop in interface Componentstop in class EJBComponentpublic 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 © 2014 JBoss by Red Hat. All rights reserved.