1 45 package org.openejb.client; 46 47 import java.io.Externalizable ; 48 import java.io.IOException ; 49 import java.io.ObjectInput ; 50 import java.io.ObjectOutput ; 51 52 57 public class ClientMetaData implements Externalizable { 58 59 transient Object clientIdentity; 60 61 public ClientMetaData(){ 62 } 63 64 public ClientMetaData(Object identity){ 65 this.clientIdentity = identity; 66 } 67 68 public Object getClientIdentity(){ 69 return clientIdentity; 70 } 71 72 public void setClientIdentity(Object clientIdentity){ 73 this.clientIdentity = clientIdentity; 74 } 75 76 88 public void readExternal(ObjectInput in) throws IOException ,ClassNotFoundException { 89 this.clientIdentity = in.readObject(); 90 } 91 92 107 public void writeExternal(ObjectOutput out) throws IOException { 108 out.writeObject( clientIdentity ); 109 } 110 } 111 | Popular Tags |