Examples of ISharedObjectMessageSerializer


Examples of org.eclipse.ecf.core.sharedobject.util.ISharedObjectMessageSerializer

    super.setUp();
    createServerAndClients();
    connectClients();
    // Setup custom serializer
    ISharedObjectContainer soContainer = getClientSOContainer(0);
    soContainer.setSharedObjectMessageSerializer(new ISharedObjectMessageSerializer() {

      public Object deserializeMessage(byte[] data) throws IOException,
          ClassNotFoundException {
        return deserialize(data);
      }

      public byte[] serializeMessage(ID sharedObjectId, Object message)
          throws IOException {
        return serialize(message);
      }});
    ISharedObjectContainer serverContainer = getServerSOContainer();
    serverContainer.setSharedObjectMessageSerializer(new ISharedObjectMessageSerializer() {

      public Object deserializeMessage(byte[] data) throws IOException,
          ClassNotFoundException {
        return deserialize(data);
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.