1 22 package org.jboss.ejb3.stateful; 23 24 import java.io.IOException ; 25 import java.io.ObjectInput ; 26 import java.io.ObjectOutput ; 27 import java.util.HashMap ; 28 import javax.persistence.EntityManager; 29 import org.jboss.aop.metadata.SimpleMetaData; 30 import org.jboss.ejb3.Ejb3Registry; 31 import org.jboss.serial.io.MarshalledObject; 32 33 39 public class NestedStatefulBeanContext extends StatefulBeanContext 40 { 41 public void writeExternal(ObjectOutput out) throws IOException 42 { 43 out.writeUTF(getContainer().getObjectName().getCanonicalName()); 44 out.writeObject(id); 45 out.writeObject(metadata); 46 out.writeObject(bean); 47 out.writeObject(persistenceContexts); 48 out.writeObject(interceptorInstances); 49 out.writeObject(contains); 50 } 51 52 public void readExternal(ObjectInput in) throws IOException , ClassNotFoundException 53 { 54 containerName = in.readUTF(); 55 id = in.readObject(); 56 metadata = (SimpleMetaData) in.readObject(); 57 bean = in.readObject(); 58 persistenceContexts = (HashMap <String , EntityManager>) in.readObject(); 59 interceptorInstances = (HashMap <Class , Object >)in.readObject(); 60 beanMO = (MarshalledObject) in.readObject(); 61 } 62 63 } 64 | Popular Tags |