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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intSYNC_STATE_AFTER_COMPLETE_DELAYED_COMMITTEDstatic intSYNC_STATE_AFTER_COMPLETE_DELAYED_NO_COMMITstatic intSYNC_STATE_INVOCATION_IN_PROGRESSstatic intSYNC_STATE_NO_INVOCATION-
Fields inherited from class org.jboss.as.ee.component.BasicComponentInstance
INSTANCE_KEY
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedStatefulSessionComponentInstance(StatefulSessionComponent component, org.jboss.invocation.Interceptor preDestroyInterceptor, Map<Method,org.jboss.invocation.Interceptor> methodInterceptors, Map<Object,Object> context)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidafterBegin()protected voidafterCompletion(boolean committed)protected voidbeforeCompletion()StatefulSessionComponentgetComponent()org.jboss.invocation.InterceptorgetEjb2XRemoveInterceptor()org.jboss.ejb.client.SessionIDgetId()jakarta.transaction.TransactiongetTransaction()voidpostActivate()voidprePassivate()voidremoved()Indicates that this bean instance was removed from its cache.voidsetTransaction(jakarta.transaction.Transaction transaction)StringtoString()ObjectwriteReplace()-
Methods inherited from class org.jboss.as.ejb3.component.session.SessionBeanComponentInstance
getEjbContext
-
Methods inherited from class org.jboss.as.ee.component.BasicComponentInstance
allowedMethods, constructionFinished, destroy, getInstance, getInstanceData, getInterceptor, preDestroy, prepareInterceptorContext, setInstanceData
-
-
-
-
Field Detail
-
SYNC_STATE_NO_INVOCATION
public static final int SYNC_STATE_NO_INVOCATION
- See Also:
- Constant Field Values
-
SYNC_STATE_INVOCATION_IN_PROGRESS
public static final int SYNC_STATE_INVOCATION_IN_PROGRESS
- See Also:
- Constant Field Values
-
SYNC_STATE_AFTER_COMPLETE_DELAYED_NO_COMMIT
public static final int SYNC_STATE_AFTER_COMPLETE_DELAYED_NO_COMMIT
- See Also:
- Constant Field Values
-
SYNC_STATE_AFTER_COMPLETE_DELAYED_COMMITTED
public static final int SYNC_STATE_AFTER_COMPLETE_DELAYED_COMMITTED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
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
public StatefulSessionComponent 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()
-
writeReplace
public Object writeReplace() throws ObjectStreamException
- 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>
-
-