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,Contextual<Object>,Identifiable<org.jboss.ejb.client.SessionID>
public class StatefulSessionComponentInstance extends SessionBeanComponentInstance implements Identifiable<org.jboss.ejb.client.SessionID>, Contextual<Object>
- 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()voiddiscard()ObjectgetCacheContext()Returns the cache context of this cached object.StatefulSessionComponentgetComponent()org.jboss.invocation.InterceptorgetEjb2XRemoveInterceptor()org.jboss.ejb.client.SessionIDgetId()The object identifier.jakarta.transaction.TransactiongetTransaction()protected voidpostActivate()protected voidprePassivate()voidsetCacheContext(Object context)Sets the cache context of this cached object.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.ejb3.component.EjbComponentInstance
isDiscarded
-
Methods inherited from class org.jboss.as.ee.component.BasicComponentInstance
allowedMethods, constructionFinished, destroy, getInstance, getInstanceData, getInterceptor, preDestroy, prepareInterceptorContext, setInstanceData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jboss.as.ejb3.cache.Contextual
removeCacheContext
-
-
-
-
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
protected void prePassivate()
-
postActivate
protected void postActivate()
-
discard
public void discard()
- Overrides:
discardin classEjbComponentInstance
-
getComponent
public StatefulSessionComponent getComponent()
- Specified by:
getComponentin interfaceComponentInstance- Overrides:
getComponentin classSessionBeanComponentInstance
-
getId
public org.jboss.ejb.client.SessionID getId()
Description copied from interface:IdentifiableThe object identifier.- Specified by:
getIdin interfaceIdentifiable<org.jboss.ejb.client.SessionID>- Specified by:
getIdin classSessionBeanComponentInstance- Returns:
- the object identifier
-
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)
-
getCacheContext
public Object getCacheContext()
Description copied from interface:ContextualReturns the cache context of this cached object.- Specified by:
getCacheContextin interfaceContextual<Object>- Returns:
- a cache context
-
setCacheContext
public void setCacheContext(Object context)
Description copied from interface:ContextualSets the cache context of this cached object.- Specified by:
setCacheContextin interfaceContextual<Object>- Parameters:
context- a cache context
-
-