Class DefaultConnectorFactoryDescriptor
java.lang.Object
de.iip_ecosphere.platform.connectors.DefaultConnectorFactoryDescriptor
- All Implemented Interfaces:
ConnectorFactoryDescriptor
Implements a default (type-safe) connector factory descriptor.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classType-safe protocol adapter supplier for multiple adapters.static classDefault (type-safe) creator implementation.protected static interfaceSupplies with input/output path.protected static classA protocol supplier.private static classType-safe serializer supplier.protected static classType-safe protocol adapter supplier for multiple adapters.Nested classes/interfaces inherited from interface de.iip_ecosphere.platform.connectors.ConnectorFactoryDescriptor
ConnectorFactoryDescriptor.ConnectorFactoryCreator -
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCreator(String serviceId, ConnectorFactoryDescriptor.ConnectorFactoryCreator creator) Adds a creator.getCreator(String serviceId) Returns the creator for the givenserviceId.
-
Field Details
-
creators
-
-
Constructor Details
-
DefaultConnectorFactoryDescriptor
public DefaultConnectorFactoryDescriptor()
-
-
Method Details
-
addCreator
protected void addCreator(String serviceId, ConnectorFactoryDescriptor.ConnectorFactoryCreator creator) Adds a creator. To be called in the constructor of the descriptor.- Parameters:
serviceId- the service ID, ignored if nullcreator- the creator, ignored if null
-
getCreator
Description copied from interface:ConnectorFactoryDescriptorReturns the creator for the givenserviceId.- Specified by:
getCreatorin interfaceConnectorFactoryDescriptor- Parameters:
serviceId- the service id- Returns:
- the creator, may be null for unknown
-