Class ConnectorEventUtils
java.lang.Object
de.iip_ecosphere.platform.connectors.events.ConnectorEventUtils
Connector event utility methods.
- Author:
- Holger Eichelberger, SSE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> DataTimeDifferenceProvider<T> createDataTimeDifferenceProvider(ClassLoader loader, String className, Class<T> type) Convenience method for creating (custom) data time difference provider instances.static <T> ConnectorInputHandler<T> createInputHandlerInstance(ClassLoader loader, String className, Class<T> type) Convenience method for creating (custom) input handler instances.
-
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 withclassName- the name of the parser class (must implementInputParserand provide a non-argument constructortype- 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 withclassName- the name of the parser class (must implementInputParserand provide a non-argument constructortype- the type to be handled by the connector- Returns:
- the parser instance (null if the parser cannot be found/initialized)
-