public class StatefulSessionComponentInstance extends SessionBeanComponentInstance implements Identifiable<org.jboss.ejb.client.SessionID>, Contextual<Object>
Modifier and Type | Field and Description |
---|---|
static int |
SYNC_STATE_AFTER_COMPLETE_DELAYED_COMMITTED |
static int |
SYNC_STATE_AFTER_COMPLETE_DELAYED_NO_COMMIT |
static int |
SYNC_STATE_INVOCATION_IN_PROGRESS |
static int |
SYNC_STATE_NO_INVOCATION |
INSTANCE_KEY
Modifier | Constructor and Description |
---|---|
protected |
StatefulSessionComponentInstance(StatefulSessionComponent component,
org.jboss.invocation.Interceptor preDestroyInterceptor,
Map<Method,org.jboss.invocation.Interceptor> methodInterceptors,
Map<Object,Object> context)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
afterBegin() |
protected void |
afterCompletion(boolean committed) |
protected void |
beforeCompletion() |
void |
discard() |
Object |
getCacheContext()
Returns the cache context of this cached object.
|
StatefulSessionComponent |
getComponent()
Get the component associated with this instance.
|
org.jboss.invocation.Interceptor |
getEjb2XRemoveInterceptor() |
org.jboss.ejb.client.SessionID |
getId()
The object identifier.
|
Transaction |
getTransaction() |
protected void |
postActivate() |
protected void |
prePassivate() |
void |
setCacheContext(Object context)
Sets the cache context of this cached object.
|
void |
setTransaction(Transaction transaction) |
String |
toString() |
Object |
writeReplace() |
getEjbContext
isDiscarded
allowedMethods, constructionFinished, destroy, getInstance, getInstanceData, getInterceptor, preDestroy, prepareInterceptorContext, setInstanceData
public static final int SYNC_STATE_NO_INVOCATION
public static final int SYNC_STATE_INVOCATION_IN_PROGRESS
public static final int SYNC_STATE_AFTER_COMPLETE_DELAYED_NO_COMMIT
public static final int SYNC_STATE_AFTER_COMPLETE_DELAYED_COMMITTED
protected StatefulSessionComponentInstance(StatefulSessionComponent component, org.jboss.invocation.Interceptor preDestroyInterceptor, Map<Method,org.jboss.invocation.Interceptor> methodInterceptors, Map<Object,Object> context)
component
- the componentprotected void afterBegin()
protected void afterCompletion(boolean committed)
protected void beforeCompletion()
protected void prePassivate()
protected void postActivate()
public void discard()
discard
in class EjbComponentInstance
public StatefulSessionComponent getComponent()
BasicComponentInstance
getComponent
in interface ComponentInstance
getComponent
in class SessionBeanComponentInstance
public org.jboss.ejb.client.SessionID getId()
Identifiable
getId
in interface Identifiable<org.jboss.ejb.client.SessionID>
getId
in class SessionBeanComponentInstance
public org.jboss.invocation.Interceptor getEjb2XRemoveInterceptor()
public Object writeReplace() throws ObjectStreamException
ObjectStreamException
public Transaction getTransaction()
public void setTransaction(Transaction transaction)
public Object getCacheContext()
Contextual
getCacheContext
in interface Contextual<Object>
public void setCacheContext(Object context)
Contextual
setCacheContext
in interface Contextual<Object>
context
- a cache contextCopyright © 2017 JBoss by Red Hat. All rights reserved.