Class TypeTranslators

java.lang.Object
de.iip_ecosphere.platform.transport.serialization.TypeTranslators

public class TypeTranslators extends Object
Defines a set of type translators for primitive types.
Author:
Holger Eichelberger, SSE
  • Field Details

  • Constructor Details

    • TypeTranslators

      public TypeTranslators()
  • Method Details

    • createTypeTranslator

      public static TypeTranslator<?,?> createTypeTranslator(ClassLoader loader, String className)
      Convenience method for creating (custom) type translator instances.
      Parameters:
      loader - the class loader to load the class with
      className - the name of the type translator class (must provide a no-argument constructor)
      Returns:
      the type translator instance (or null if the translator cannot be found/initialized)
    • createSerializer

      public static Serializer<?> createSerializer(ClassLoader loader, String className)
      Convenience method for creating (custom) serializer instances.
      Parameters:
      loader - the class loader to load the class with
      className - the name of the type serializer class (must provide a no-argument constructor)
      Returns:
      the type serializer instance (or null if the serializer cannot be found/initialized)