org.apache.hivemind.internal.ser
Class ServiceToken

java.lang.Object
  extended by org.apache.hivemind.internal.ser.ServiceToken
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class ServiceToken
extends java.lang.Object
implements java.io.Externalizable

Instance used to replace actual service (proxies) during serialization. Note that this represents a back-door into HiveMind's RegistryInfrastructure, which is less than ideal, and should not be used by end-user code!

Since:
1.1
Author:
Howard M. Lewis Ship
See Also:
Serialized Form

Constructor Summary
ServiceToken()
           
ServiceToken(java.lang.String serviceId)
           
 
Method Summary
 java.lang.String getServiceId()
           
 void readExternal(java.io.ObjectInput in)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceToken

public ServiceToken()

ServiceToken

public ServiceToken(java.lang.String serviceId)
Method Detail

getServiceId

public java.lang.String getServiceId()

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
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
Throws:
java.io.IOException
java.lang.ClassNotFoundException


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.