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:
Externalizable, Serializable, org.jboss.ejb3.cache.Identifiable, org.jboss.ejb3.interceptors.container.BeanContext<Object>, org.jboss.ejb3.tx.container.StatefulBeanContext<Object>

public class NestedStatefulBeanContext
extends StatefulBeanContext
implements 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.

Version:
$Revision: 73395 $
Author:
Bill Burke
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, Object bean)
           
 
Method Summary
 void readExternal(ObjectInput in)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.jboss.ejb3.stateful.StatefulBeanContext
activateAfterReplication, addContains, addExtendedPersistenceContext, equals, extractBeanAndInterceptors, getCanPassivate, getCanRemoveFromCache, getContainedIn, getContainer, getContains, getEJBContext, getExtendedPersistenceContext, getExtendedPersistenceContexts, getId, getInstance, getInterceptorInstances, getInvokedMethodKey, getLock, getMetaData, getReplicationIsPassivation, getUltimateContainedIn, hashCode, isDiscarded, isInInvocation, isInUse, isModified, isRemoved, isTxSynchronized, passivateAfterReplication, popContainedIn, postActivate, postReplicate, prePassivate, preReplicate, pushContainedIn, remove, removeContains, removeExtendedPersistenceContext, scanForExtendedPersistenceContext, setDiscarded, setInInvocation, setInUse, setReplicationIsPassivation, setTxSynchronized
 
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,
                                 Object bean)

NestedStatefulBeanContext

public NestedStatefulBeanContext()
Only for externalization.

Method Detail

writeExternal

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

readExternal

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


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.