public class StatefulSessionComponent extends SessionBeanComponent implements StatefulObjectFactory<StatefulSessionComponentInstance>, PassivationListener<StatefulSessionComponentInstance>, IdentifierFactory<org.jboss.ejb.client.SessionID>
beanLevelAccessTimeout| Modifier | Constructor and Description |
|---|---|
protected |
StatefulSessionComponent(StatefulSessionComponentCreateService ejbComponentCreateService)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected StatefulSessionComponentInstance |
constructComponentInstance(org.jboss.as.naming.ManagedReference instance,
boolean invokePostConstruct) |
protected StatefulSessionComponentInstance |
constructComponentInstance(org.jboss.as.naming.ManagedReference instance,
boolean invokePostConstruct,
Map<Object,Object> context) |
org.jboss.ejb.client.SessionID |
createIdentifier() |
StatefulSessionComponentInstance |
createInstance()
Create a new instance of this component.
|
StatefulSessionComponentInstance |
createInstance(Object instance) |
protected void |
createInterceptors(org.jboss.invocation.InterceptorFactoryContext context) |
org.jboss.ejb.client.SessionID |
createSession() |
org.jboss.ejb.client.SessionID |
createSessionRemote()
creates a session using the global request controller.
|
void |
destroyInstance(StatefulSessionComponentInstance instance)
Destroy an instance of the component.
|
void |
done() |
AccessTimeoutDetails |
getAccessTimeout(Method method)
Returns the
AccessTimeout applicable to given method |
org.jboss.invocation.Interceptor |
getAfterBegin() |
Method |
getAfterBeginMethod() |
org.jboss.invocation.Interceptor |
getAfterCompletion() |
Method |
getAfterCompletionMethod() |
AllowedMethodsInformation |
getAllowedMethodsInformation() |
org.jboss.invocation.Interceptor |
getBeforeCompletion() |
Method |
getBeforeCompletionMethod() |
<T> T |
getBusinessObject(Class<T> businessInterface,
org.jboss.invocation.InterceptorContext context) |
Cache<org.jboss.ejb.client.SessionID,StatefulSessionComponentInstance> |
getCache() |
org.jboss.invocation.Interceptor |
getEjb2XRemoveMethod() |
javax.ejb.EJBLocalObject |
getEJBLocalObject(org.jboss.invocation.InterceptorContext ctx) |
javax.ejb.EJBObject |
getEJBObject(org.jboss.invocation.InterceptorContext ctx) |
org.jboss.invocation.Interceptor |
getPostActivate() |
org.jboss.invocation.Interceptor |
getPrePassivate() |
Set<Object> |
getSerialiableInterceptorContextKeys() |
protected org.jboss.ejb.client.SessionID |
getSessionIdOf(org.jboss.invocation.InterceptorContext ctx) |
javax.ejb.TimerService |
getTimerService() |
void |
init() |
protected BasicComponentInstance |
instantiateComponentInstance(org.jboss.invocation.Interceptor preDestroyInterceptor,
Map<Method,org.jboss.invocation.Interceptor> methodInterceptors,
Map<Object,Object> context) |
boolean |
isRemotable(Throwable throwable) |
void |
postActivate(StatefulSessionComponentInstance instance) |
void |
prePassivate(StatefulSessionComponentInstance instance) |
void |
removeSession(org.jboss.ejb.client.SessionID sessionId)
Removes the session associated with the
sessionId. |
boolean |
shouldDiscard(Exception ex,
Method method) |
getAsynchronousExecutor, getRollbackOnly, setRollbackOnlycreateViewInstanceProxy, createViewInstanceProxy, getApplicationException, getApplicationName, getCallerPrincipal, getComponentDescription, getControlPoint, getCurrentTransactionAttribute, getDistinctName, getEarApplicationName, getEJBHome, getEJBLocalHome, getEjbLocalObjectType, getEjbLocalObjectViewServiceName, getEjbObjectType, getEjbObjectViewServiceName, getEjbSuspendHandlerService, getIdentityOutflowFunction, getIncomingRunAsIdentity, getInvocationMetrics, getModuleName, getSecurityDomain, getSecurityManager, getSecurityMetaData, getShutDownInterceptorFactory, getTimeoutInterceptors, getTimeoutMethod, getTransactionAttributeType, getTransactionAttributeType, getTransactionAttributeType, getTransactionManager, getTransactionSynchronizationRegistry, getTransactionTimeout, getTransactionTimeout, getUserTransaction, isBeanManagedTransaction, isCallerInRole, isExceptionLoggingEnabled, isSecurityDomainKnown, isStatisticsEnabled, isTransactionAttributeTypeExplicit, lookup, setIncomingRunAsIdentity, stopcomponentInstanceCreated, getComponentClass, getComponentName, getCreateServiceName, getNamespaceContextSelector, serviceNameOf, start, toString, waitForComponentStartprotected StatefulSessionComponent(StatefulSessionComponentCreateService ejbComponentCreateService)
ejbComponentCreateService - the component configurationpublic StatefulSessionComponentInstance createInstance()
StatefulObjectFactorycreateInstance in interface ComponentcreateInstance in interface StatefulObjectFactory<StatefulSessionComponentInstance>createInstance in class BasicComponentpublic StatefulSessionComponentInstance createInstance(Object instance)
createInstance in interface ComponentcreateInstance in class BasicComponentprotected StatefulSessionComponentInstance constructComponentInstance(org.jboss.as.naming.ManagedReference instance, boolean invokePostConstruct)
constructComponentInstance in class BasicComponentprotected StatefulSessionComponentInstance constructComponentInstance(org.jboss.as.naming.ManagedReference instance, boolean invokePostConstruct, Map<Object,Object> context)
constructComponentInstance in class BasicComponentpublic void destroyInstance(StatefulSessionComponentInstance instance)
StatefulObjectFactorydestroyInstance in interface StatefulObjectFactory<StatefulSessionComponentInstance>instance - the instance to destroypublic void postActivate(StatefulSessionComponentInstance instance)
postActivate in interface PassivationListener<StatefulSessionComponentInstance>public void prePassivate(StatefulSessionComponentInstance instance)
prePassivate in interface PassivationListener<StatefulSessionComponentInstance>protected org.jboss.ejb.client.SessionID getSessionIdOf(org.jboss.invocation.InterceptorContext ctx)
public <T> T getBusinessObject(Class<T> businessInterface, org.jboss.invocation.InterceptorContext context) throws IllegalStateException
getBusinessObject in class SessionBeanComponentIllegalStateExceptionpublic javax.ejb.EJBLocalObject getEJBLocalObject(org.jboss.invocation.InterceptorContext ctx)
throws IllegalStateException
getEJBLocalObject in class SessionBeanComponentIllegalStateExceptionpublic javax.ejb.EJBObject getEJBObject(org.jboss.invocation.InterceptorContext ctx)
throws IllegalStateException
getEJBObject in class SessionBeanComponentIllegalStateExceptionpublic javax.ejb.TimerService getTimerService()
throws IllegalStateException
getTimerService in class EJBComponentIllegalStateExceptionpublic AccessTimeoutDetails getAccessTimeout(Method method)
AccessTimeout applicable to given methodpublic org.jboss.ejb.client.SessionID createSession()
public org.jboss.ejb.client.SessionID createSessionRemote()
public Cache<org.jboss.ejb.client.SessionID,StatefulSessionComponentInstance> getCache()
public org.jboss.ejb.client.SessionID createIdentifier()
createIdentifier in interface IdentifierFactory<org.jboss.ejb.client.SessionID>protected BasicComponentInstance instantiateComponentInstance(org.jboss.invocation.Interceptor preDestroyInterceptor, Map<Method,org.jboss.invocation.Interceptor> methodInterceptors, Map<Object,Object> context)
instantiateComponentInstance in class BasicComponentpublic void removeSession(org.jboss.ejb.client.SessionID sessionId)
sessionId.sessionId - The session idpublic org.jboss.invocation.Interceptor getAfterBegin()
public org.jboss.invocation.Interceptor getAfterCompletion()
public org.jboss.invocation.Interceptor getBeforeCompletion()
public Method getAfterBeginMethod()
public Method getAfterCompletionMethod()
public Method getBeforeCompletionMethod()
public org.jboss.invocation.Interceptor getPrePassivate()
public org.jboss.invocation.Interceptor getPostActivate()
public org.jboss.invocation.Interceptor getEjb2XRemoveMethod()
public void init()
init in class EJBComponentprotected void createInterceptors(org.jboss.invocation.InterceptorFactoryContext context)
createInterceptors in class BasicComponentpublic void done()
done in interface org.jboss.as.server.suspend.ServerActivityCallbackdone in class EJBComponentpublic AllowedMethodsInformation getAllowedMethodsInformation()
getAllowedMethodsInformation in class EJBComponentpublic boolean isRemotable(Throwable throwable)
isRemotable in interface ComponentCopyright © 2020 JBoss by Red Hat. All rights reserved.