Class ConnectorEventUtils

java.lang.Object
de.iip_ecosphere.platform.connectors.events.ConnectorEventUtils

public class ConnectorEventUtils extends Object
Connector event utility methods.
Author:
Holger Eichelberger, SSE
  • Constructor Details

    • ConnectorEventUtils

      public ConnectorEventUtils()
  • Method Details

    • createInputHandlerInstance

      public static <T> ConnectorInputHandler<T> createInputHandlerInstance(ClassLoader loader, String className, Class<T> type)
      Convenience method for creating (custom) input handler instances.
      Type Parameters:
      T - the data type to be handled by the connector
      Parameters:
      loader - the class loader to load the class with
      className - the name of the parser class (must implement InputParser and provide a non-argument constructor
      type - the type to be handled by the connector
      Returns:
      the parser instance (null if the parser cannot be found/initialized)
    • createDataTimeDifferenceProvider

      public static <T> DataTimeDifferenceProvider<T> createDataTimeDifferenceProvider(ClassLoader loader, String className, Class<T> type)
      Convenience method for creating (custom) data time difference provider instances.
      Type Parameters:
      T - the data type to be handled by the connector
      Parameters:
      loader - the class loader to load the class with
      className - the name of the parser class (must implement InputParser and provide a non-argument constructor
      type - the type to be handled by the connector
      Returns:
      the parser instance (null if the parser cannot be found/initialized)