Class RegistrationHelper

java.lang.Object
de.iip_ecosphere.platform.transport.spring.RegistrationHelper

public class RegistrationHelper extends Object
Basic registration functions for the transport layer.
Author:
Holger Eichelberger, SSE
  • Field Details

    • LOGGER

      private static final de.iip_ecosphere.platform.support.logging.Logger LOGGER
  • Constructor Details

    • RegistrationHelper

      public RegistrationHelper()
  • Method Details

    • registerSerializers

      public static void registerSerializers(SerializerConfiguration cfg)
      Registers serializers based on class names from the Spring configuration.
      Parameters:
      cfg - the serializer configuration
    • configureTransportFactory

      public static void configureTransportFactory(TransportFactoryConfiguration cfg)
      Configures the transport factory.
      Parameters:
      cfg - the transport configuration
    • obtainConnectorCreator

      @Nullable private static de.iip_ecosphere.platform.transport.TransportFactory.ConnectorCreator obtainConnectorCreator(String className, String context)
      Obtains a connector creator.
      Parameters:
      className - the class name
      context - a context description to be included into an error message
      Returns:
      the connector creator, may be null if className does not exist
    • obtainInstance

      public static <T> T obtainInstance(String className, String context, Class<? extends T> type)
      Obtains an instance of className.
      Type Parameters:
      T - the type to create
      Parameters:
      className - the class name
      context - a context description to be included into an error message
      type - the type to create
      Returns:
      the connector creator, may be null if className does not exist