Class StatefulSessionComponentInstance
java.lang.Object
org.jboss.as.ee.component.BasicComponentInstance
org.jboss.as.ejb3.component.EjbComponentInstance
org.jboss.as.ejb3.component.session.SessionBeanComponentInstance
org.jboss.as.ejb3.component.stateful.StatefulSessionComponentInstance
- All Implemented Interfaces:
Serializable,ComponentInstance,StatefulSessionBeanInstance<org.jboss.ejb.client.SessionID>,BeanInstance<org.jboss.ejb.client.SessionID>
public class StatefulSessionComponentInstance
extends SessionBeanComponentInstance
implements StatefulSessionBeanInstance<org.jboss.ejb.client.SessionID>
- Author:
- Carlo de Wolf
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class org.jboss.as.ee.component.BasicComponentInstance
INSTANCE_KEY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStatefulSessionComponentInstance(StatefulSessionComponent component, org.jboss.invocation.Interceptor preDestroyInterceptor, Map<Method, org.jboss.invocation.Interceptor> methodInterceptors, Map<Object, Object> context) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidafterCompletion(boolean committed) protected voidorg.jboss.invocation.Interceptororg.jboss.ejb.client.SessionIDgetId()jakarta.transaction.Transactionvoidvoidvoidremoved()Indicates that this bean instance was removed from its cache.voidsetTransaction(jakarta.transaction.Transaction transaction) toString()Methods inherited from class org.jboss.as.ejb3.component.session.SessionBeanComponentInstance
getEjbContextMethods inherited from class org.jboss.as.ee.component.BasicComponentInstance
allowedMethods, constructionFinished, destroy, getInstance, getInstanceData, getInterceptor, preDestroy, prepareInterceptorContext, setInstanceData
-
Field Details
-
SYNC_STATE_NO_INVOCATION
public static final int SYNC_STATE_NO_INVOCATION- See Also:
-
SYNC_STATE_INVOCATION_IN_PROGRESS
public static final int SYNC_STATE_INVOCATION_IN_PROGRESS- See Also:
-
SYNC_STATE_AFTER_COMPLETE_DELAYED_NO_COMMIT
public static final int SYNC_STATE_AFTER_COMPLETE_DELAYED_NO_COMMIT- See Also:
-
SYNC_STATE_AFTER_COMPLETE_DELAYED_COMMITTED
public static final int SYNC_STATE_AFTER_COMPLETE_DELAYED_COMMITTED- See Also:
-
-
Constructor Details
-
StatefulSessionComponentInstance
protected StatefulSessionComponentInstance(StatefulSessionComponent component, org.jboss.invocation.Interceptor preDestroyInterceptor, Map<Method, org.jboss.invocation.Interceptor> methodInterceptors, Map<Object, Object> context) Construct a new instance.- Parameters:
component- the component
-
-
Method Details
-
afterBegin
protected void afterBegin() -
afterCompletion
protected void afterCompletion(boolean committed) -
beforeCompletion
protected void beforeCompletion() -
prePassivate
public void prePassivate()- Specified by:
prePassivatein interfaceBeanInstance<org.jboss.ejb.client.SessionID>
-
postActivate
public void postActivate()- Specified by:
postActivatein interfaceBeanInstance<org.jboss.ejb.client.SessionID>
-
getComponent
- Specified by:
getComponentin interfaceComponentInstance- Overrides:
getComponentin classSessionBeanComponentInstance
-
getId
public org.jboss.ejb.client.SessionID getId()- Specified by:
getIdin interfaceBeanInstance<org.jboss.ejb.client.SessionID>- Specified by:
getIdin classSessionBeanComponentInstance
-
getEjb2XRemoveInterceptor
public org.jboss.invocation.Interceptor getEjb2XRemoveInterceptor() -
toString
-
writeReplace
- Throws:
ObjectStreamException
-
getTransaction
public jakarta.transaction.Transaction getTransaction() -
setTransaction
public void setTransaction(jakarta.transaction.Transaction transaction) -
removed
public void removed()Description copied from interface:StatefulSessionBeanInstanceIndicates that this bean instance was removed from its cache.- Specified by:
removedin interfaceStatefulSessionBeanInstance<org.jboss.ejb.client.SessionID>
-