Class SerializationManager

java.lang.Object
com.pnfsoftware.jeb.util.serialization.SerializationManager

public class SerializationManager extends Object
This object provides serializer and deserializers optimized for a collection of specific types. It implements the PNF-ORPD mechanism and specifications.

Currently, third-party code should not used the serializer - i.e., units produced by third-party plugins should be transient until the PNF-ORPD implementation is complete. If you choose to persist third-party units, make sure to read some limitations explained there.

See Also:
  • Field Details

  • Constructor Details

    • SerializationManager

      public SerializationManager(ITypeIdProvider typeIdProvider)
  • Method Details

    • addClassloader

      public void addClassloader(ClassLoader cl)
      Register an additional classloader for deserialization. The additional classloaders take precedence over the system classloader, which is used if all else failed.

      Calling this method is useless if the manager is to be used for serialization only.

      Parameters:
      cl - a classloader
    • getTypeIdProvider

      public ITypeIdProvider getTypeIdProvider()
    • getSerializer

      public Serializer getSerializer(OutputStream out)
    • getSerializer

      public Serializer getSerializer(OutputStream out, boolean generateStringPool)
    • getSerializer_v4

      public Serializer_v4 getSerializer_v4(OutputStream out)
    • getDeserializer

      public Deserializer getDeserializer(InputStream in)