akka.serialization
Class JSerializer

java.lang.Object
  extended by akka.serialization.JSerializer
All Implemented Interfaces:
Serializer

public abstract class JSerializer
extends java.lang.Object
implements Serializer

Java API for creating a Serializer: make sure to include a constructor which takes exactly one argument of type ExtendedActorSystem, because that is the preferred constructor which will be invoked when reflectively instantiating the JSerializer (also possible with empty constructor).


Constructor Summary
JSerializer()
           
 
Method Summary
 java.lang.Object fromBinary(byte[] bytes, scala.Option<java.lang.Class<?>> manifest)
          Produces an object from an array of bytes, with an optional type-hint; the class should be loaded using ActorSystem.dynamicAccess.
protected abstract  java.lang.Object fromBinaryJava(byte[] bytes, java.lang.Class<?> manifest)
          This method must be implemented, manifest may be null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface akka.serialization.Serializer
fromBinary, fromBinary, identifier, includeManifest, toBinary
 

Constructor Detail

JSerializer

public JSerializer()
Method Detail

fromBinary

public final java.lang.Object fromBinary(byte[] bytes,
                                         scala.Option<java.lang.Class<?>> manifest)
Description copied from interface: Serializer
Produces an object from an array of bytes, with an optional type-hint; the class should be loaded using ActorSystem.dynamicAccess.

Specified by:
fromBinary in interface Serializer
Parameters:
bytes - (undocumented)
manifest - (undocumented)
Returns:
(undocumented)

fromBinaryJava

protected abstract java.lang.Object fromBinaryJava(byte[] bytes,
                                                   java.lang.Class<?> manifest)
This method must be implemented, manifest may be null.

Parameters:
bytes - (undocumented)
manifest - (undocumented)
Returns:
(undocumented)