org.apache.hivemind.internal.ser
Interface ServiceSerializationSupport

All Known Implementing Classes:
RegistryInfrastructureImpl

public interface ServiceSerializationSupport

Utility interface used to support serialization of services (really, service proxies).

Since:
1.1
Author:
Howard M. Lewis Ship

Method Summary
 java.lang.Object getServiceFromToken(ServiceToken token)
          Returns the service (proxy) for the indicated token.
 ServiceToken getServiceTokenForService(java.lang.String serviceId)
          Returns a ServiceTokencorresponding to the indicated serviceId.
 

Method Detail

getServiceTokenForService

public ServiceToken getServiceTokenForService(java.lang.String serviceId)
Returns a ServiceTokencorresponding to the indicated serviceId. A ServiceToken takes the place of a service (proxy) during serialization.


getServiceFromToken

public java.lang.Object getServiceFromToken(ServiceToken token)
Returns the service (proxy) for the indicated token.