public class StatefulSessionComponentInstance extends SessionBeanComponentInstance implements Cacheable<org.jboss.ejb.client.SessionID>
INSTANCE_KEY
Modifier | Constructor and Description |
---|---|
protected |
StatefulSessionComponentInstance(StatefulSessionComponent component,
AtomicReference<ManagedReference> instanceReference,
org.jboss.invocation.Interceptor preDestroyInterceptor,
Map<Method,org.jboss.invocation.Interceptor> methodInterceptors,
org.jboss.invocation.InterceptorFactoryContext factoryContext)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
afterBegin() |
protected void |
afterCompletion(boolean committed) |
protected void |
beforeCompletion() |
void |
discard() |
StatefulSessionComponent |
getComponent()
Get the component associated with this instance.
|
org.jboss.invocation.Interceptor |
getEjb2XRemoveInterceptor() |
org.jboss.ejb.client.SessionID |
getId()
The object identifier.
|
Map<Object,Object> |
getSerializableInterceptors() |
boolean |
isModified()
Gets whether this object's internal state has been modified since
the last request to this method.
|
protected void |
postActivate() |
protected void |
prePassivate() |
void |
setSerializableInterceptors(Map<Object,Object> serializableInterceptors) |
String |
toString() |
Object |
writeReplace() |
getEjbContext
isDiscarded
allowedMethods, destroy, getInstance, getInstanceReference, getInterceptor, preDestroy, prepareInterceptorContext
protected StatefulSessionComponentInstance(StatefulSessionComponent component, AtomicReference<ManagedReference> instanceReference, org.jboss.invocation.Interceptor preDestroyInterceptor, Map<Method,org.jboss.invocation.Interceptor> methodInterceptors, org.jboss.invocation.InterceptorFactoryContext factoryContext)
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 void setSerializableInterceptors(Map<Object,Object> serializableInterceptors)
public StatefulSessionComponent getComponent()
BasicComponentInstance
getComponent
in interface ComponentInstance
getComponent
in class SessionBeanComponentInstance
public boolean isModified()
Cacheable
Implementations must be aggressive about returning true
if
they are uncertain about whether they have been modified; false
should only be returned if the implementing object is certain its
internal state has not been modified.
isModified
in interface Cacheable<org.jboss.ejb.client.SessionID>
true
if the state has been modified or the
implementing object does not know; false
otherwise.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
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.