Class RegistrationHelper
java.lang.Object
de.iip_ecosphere.platform.transport.spring.RegistrationHelper
Basic registration functions for the transport layer.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final de.iip_ecosphere.platform.support.logging.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidConfigures the transport factory.private static de.iip_ecosphere.platform.transport.TransportFactory.ConnectorCreatorobtainConnectorCreator(String className, String context) Obtains a connector creator.static <T> TobtainInstance(String className, String context, Class<? extends T> type) Obtains an instance ofclassName.static voidRegisters serializers based on class names from the Spring configuration.
-
Field Details
-
LOGGER
private static final de.iip_ecosphere.platform.support.logging.Logger LOGGER
-
-
Constructor Details
-
RegistrationHelper
public RegistrationHelper()
-
-
Method Details
-
registerSerializers
Registers serializers based on class names from the Spring configuration.- Parameters:
cfg- the serializer configuration
-
configureTransportFactory
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 namecontext- a context description to be included into an error message- Returns:
- the connector creator, may be null if
classNamedoes not exist
-
obtainInstance
Obtains an instance ofclassName.- Type Parameters:
T- the type to create- Parameters:
className- the class namecontext- a context description to be included into an error messagetype- the type to create- Returns:
- the connector creator, may be null if
classNamedoes not exist
-