org.jboss.ejb3.stateful
Class NestedStatefulBeanContext

java.lang.Object
  extended by org.jboss.ejb3.BaseContext<T>
      extended by org.jboss.ejb3.session.SessionBeanContext<T>
          extended by org.jboss.ejb3.session.SessionSpecBeanContext<StatefulContainer>
              extended by org.jboss.ejb3.stateful.StatefulBeanContext
                  extended by org.jboss.ejb3.stateful.NestedStatefulBeanContext
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, org.jboss.ejb3.cache.Identifiable, org.jboss.ejb3.interceptors.container.BeanContext<java.lang.Object>, org.jboss.ejb3.tx.container.StatefulBeanContext<java.lang.Object>

public class NestedStatefulBeanContext
extends StatefulBeanContext
implements java.io.Externalizable

Overrides superclass to not use MarshalledValue in externalization, as a nested context is meant to be serialized as part of its parent context and to share with it object references to any XPC or managed entities. Serializing with a MarshalledValue would result in separate deserializations of the XPCs and managed entities.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.ejb3.stateful.StatefulBeanContext
beanMO, containedIn, containerClusterUid, containerGuid, contains, currentBean, discarded, id, inInvocation, isClustered, lastUsed, lock, markedForPassivation, markedForReplication, passivated, persistenceContexts, propagatedContainedIn, removed, replicationIsPassivation, txSynchronized
 
Fields inherited from class org.jboss.ejb3.session.SessionBeanContext
ejbContext
 
Fields inherited from class org.jboss.ejb3.BaseContext
bean, container, interceptorInstances, log, metadata, rm
 
Constructor Summary
NestedStatefulBeanContext()
          Only for externalization.
NestedStatefulBeanContext(StatefulContainer container, java.lang.Object bean)
           
 
Method Summary
 void readExternal(java.io.ObjectInput in)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class org.jboss.ejb3.stateful.StatefulBeanContext
activateAfterReplication, addContains, addExtendedPersistenceContext, discard, equals, extractBeanAndInterceptors, getCanPassivate, getCanRemoveFromCache, getContainedIn, getContainer, getContains, getEJBContext, getExtendedPersistenceContext, getExtendedPersistenceContexts, getId, getInstance, getInterceptorInstances, getInvokedMethodKey, getLock, getMetaData, getReplicationIsPassivation, getSessionSynchronization, getUltimateContainedIn, hashCode, isDiscarded, isInInvocation, isInUse, isModified, isRemoved, isTxSynchronized, passivateAfterReplication, popContainedIn, postActivate, postReplicate, prePassivate, preReplicate, pushContainedIn, registerSynchronization, remove, removeContains, removeExtendedPersistenceContext, scanForExtendedPersistenceContext, setDiscarded, setInInvocation, setInUse, setReplicationIsPassivation, setTxSynchronized
 
Methods inherited from class org.jboss.ejb3.session.SessionSpecBeanContext
createInjectionInvocation, createLifecycleInvocation
 
Methods inherited from class org.jboss.ejb3.BaseContext
getInterceptor, initialiseInterceptorInstances
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.ejb3.interceptors.container.BeanContext
getInterceptor
 

Constructor Detail

NestedStatefulBeanContext

public NestedStatefulBeanContext(StatefulContainer container,
                                 java.lang.Object bean)

NestedStatefulBeanContext

public NestedStatefulBeanContext()
Only for externalization.

Method Detail

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class StatefulBeanContext
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class StatefulBeanContext
Throws:
java.io.IOException
java.lang.ClassNotFoundException