Interface ISerializationServices

All Known Implementing Classes:
SerializationServices

public interface ISerializationServices
Functionality for managing serialization.
  • Method Details

    • get

      static ISerializationServices get()
      Gets an instance of the serialization services.
      Returns:
      Instance of serialization services, thread safe.
    • encode

      void encode(OutputStream os, ClassLoader cl, Object obj)
      Encodes/serializes an object for a particular receiver.
      Parameters:
      os - OutputStream to write the object.
      cl - The classloader used for encoding.
      obj - Object to be encoded.
    • decode

      Object decode(InputStream is, ClassLoader cl)
      Decodes/deserializes an object.
      Parameters:
      is - InputStream to read.
      cl - The classloader used for decoding.
      Returns:
      Object to be encoded.
    • isRemoteObject

      boolean isRemoteObject(Object target)
      Test if an object is a remote object.
    • isLocalReference

      boolean isLocalReference(Object object)
      Test if an object has reference semantics. It is a reference when: - it implements IRemotable - it is an IService, IExternalAccess or IFuture - if the object has used an @Reference annotation at type level - has been explicitly set to be reference
    • getPreprocessors

      List<jadex.common.transformation.traverser.ITraverseProcessor> getPreprocessors()
      Gets the pre-processors for encoding a received message.
    • getPostprocessors

      List<jadex.common.transformation.traverser.ITraverseProcessor> getPostprocessors()
      Gets the post-processors for decoding a received message.
    • getCloneProcessors

      List<jadex.common.transformation.traverser.ITraverseProcessor> getCloneProcessors()
      Get the clone processors.
      Returns:
      The clone processors.
    • getStringConverters

      Map<String,jadex.common.transformation.IStringConverter> getStringConverters()
      Get the string converters (can convert to and from string, possibly only for some types).
      Returns:
      The converters by name (constants in IStringConverter).
    • getSerializers

      ISerializer[] getSerializers()
      Returns all serializers.
      Returns:
      Serializers.
    • getSerializer

      ISerializer getSerializer(int id)
      Returns a serializer per id.
      Parameters:
      id - The id.
      Returns:
      The serializer.