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 |
---|---|
void |
done() |
AccessTimeoutDetails |
getAccessTimeout(Method method)
Returns the
AccessTimeoutDetails applicable for the passed method . |
AllowedMethodsInformation |
getAllowedMethodsInformation() |
SingletonComponentInstance |
getComponentInstance() |
org.jboss.invocation.Interceptor |
getConcurrencyManagementInterceptor() |
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 |
setConcurrencyManagementInterceptor(org.jboss.invocation.Interceptor interceptor) |
void |
start()
Start operation called when the Component is available.
|
getAsynchronousExecutor, getBusinessObject, getEJBLocalObject, getEJBObject, getRollbackOnly, setRollbackOnly
createViewInstanceProxy, createViewInstanceProxy, getApplicationException, getApplicationName, getCallerPrincipal, getControlPoint, getCurrentTransactionAttribute, getDistinctName, getEarApplicationName, getEJBHome, getEjbHomeViewServiceName, getEJBLocalHome, getEjbLocalHomeViewServiceName, getEjbLocalObjectType, getEjbLocalObjectViewServiceName, getEjbObjectType, getEjbObjectViewServiceName, getEjbRemoteTransactionsRepository, getInvocationMetrics, getModuleName, getSecurityManager, getSecurityMetaData, getShutDownInterceptorFactory, getTimeoutInterceptors, getTimeoutMethod, getTimerService, getTransactionAttributeType, getTransactionAttributeType, getTransactionAttributeType, getTransactionManager, getTransactionSynchronizationRegistry, getTransactionTimeout, getTransactionTimeout, getUserTransaction, isBeanManagedTransaction, isCallerInRole, isExceptionLoggingEnabled, isStatisticsEnabled, lookup, stop
componentInstanceCreated, constructComponentInstance, constructComponentInstance, createInstance, createInstance, createInterceptors, getComponentClass, getComponentName, getCreateServiceName, getNamespaceContextSelector, serviceNameOf, toString, waitForComponentStart
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComponentName
isRemotable
public 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)
BasicComponent
BasicComponentInstance
. 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 BasicComponent
public SingletonComponentInstance getComponentInstance()
SingletonComponentInstance
, lazily creating it if necessary.public void start()
BasicComponent
start
in interface Component
start
in class EJBComponent
public void done()
done
in interface org.jboss.as.server.suspend.ServerActivityCallback
done
in class EJBComponent
public 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 void setConcurrencyManagementInterceptor(org.jboss.invocation.Interceptor interceptor)
setConcurrencyManagementInterceptor
in interface LockableComponent
public org.jboss.invocation.Interceptor getConcurrencyManagementInterceptor()
getConcurrencyManagementInterceptor
in interface LockableComponent
public AllowedMethodsInformation getAllowedMethodsInformation()
getAllowedMethodsInformation
in class EJBComponent
Copyright © 2017 JBoss by Red Hat. All rights reserved.