org.apache.hivemind.internal.ser
Class ServiceSerializationHelper

java.lang.Object
  extended by org.apache.hivemind.internal.ser.ServiceSerializationHelper

public class ServiceSerializationHelper
extends java.lang.Object

Class used to hold a global instance of ServiceSerializationSupport, so that ServiceTokens may locate them.

Since:
1.1
Author:
Howard M. Lewis Ship

Constructor Summary
ServiceSerializationHelper()
           
 
Method Summary
static ServiceSerializationSupport getServiceSerializationSupport()
          Returns the previously stored SSS.
static void setServiceSerializationSupport(ServiceSerializationSupport serviceSerializationSupport)
          Stores the SSS instance for later access; if an existing SSS is already stored, then an error is logged (should be just one SSS per class loader).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceSerializationHelper

public ServiceSerializationHelper()
Method Detail

getServiceSerializationSupport

public static ServiceSerializationSupport getServiceSerializationSupport()
Returns the previously stored SSS.

Throws:
ApplicationRuntimeException - if no SSS has been stored.

setServiceSerializationSupport

public static void setServiceSerializationSupport(ServiceSerializationSupport serviceSerializationSupport)
Stores the SSS instance for later access; if an existing SSS is already stored, then an error is logged (should be just one SSS per class loader).