Class AbstractPluginChannelConnectorDescriptor<TO,TI>
java.lang.Object
de.iip_ecosphere.platform.support.plugins.DefaultPluginDescriptor<ConnectorDescriptor>
de.iip_ecosphere.platform.support.plugins.SingletonPluginDescriptor<ConnectorDescriptor>
de.iip_ecosphere.platform.connectors.AbstractPluginChannelConnectorDescriptor<TO,TI>
- Type Parameters:
TO- adapted external output type, shall be taken from implementationTI- adapted external input type, shall be taken from implementation
- All Implemented Interfaces:
ConnectorDescriptor,de.iip_ecosphere.platform.support.plugins.PluginDescriptor<ConnectorDescriptor>
public abstract class AbstractPluginChannelConnectorDescriptor<TO,TI>
extends de.iip_ecosphere.platform.support.plugins.SingletonPluginDescriptor<ConnectorDescriptor>
implements ConnectorDescriptor
Basic connector descriptor implementation. Concrete implementations must redefine the plugin id. Delegates the
connector creation to potentially adapted output and input types of a typical connector implementation.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested classes/interfaces inherited from class de.iip_ecosphere.platform.support.plugins.DefaultPluginDescriptor
de.iip_ecosphere.platform.support.plugins.DefaultPluginDescriptor.PluginSupplier<T> -
Field Summary
Fields inherited from interface de.iip_ecosphere.platform.connectors.ConnectorDescriptor
PLUGIN_ID_PREFIX, PLUGIN_TEST_ID_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<O,I, CO, CI, A extends ProtocolAdapter<O, I, CO, CI>>
Connector<O, I, CO, CI> createConnector(Supplier<ConnectorParameter> params, A... adapter) Creates a connector instance.<O,I, CO, CI, S extends AdapterSelector<O, I, CO, CI>, A extends ProtocolAdapter<O, I, CO, CI>>
Connector<O, I, CO, CI> createConnector(S selector, Supplier<ConnectorParameter> params, A... adapter) Creates a connector instance.createConnectorImpl(Supplier<ConnectorParameter> params, A... adapter) Creates a connector instance based on adapted types.protected abstract <O,I, CO, CI, S extends ChannelAdapterSelector<TO, TI, CO, CI>, A extends ChannelProtocolAdapter<TO, TI, CO, CI>>
Connector<TO, TI, CO, CI> createConnectorImpl(S selector, Supplier<ConnectorParameter> params, A... adapter) Creates a connector instance based on adapted types.protected abstract Stringprotected de.iip_ecosphere.platform.support.plugins.DefaultPluginDescriptor.PluginSupplier<ConnectorDescriptor> initPluginSupplier(de.iip_ecosphere.platform.support.plugins.DefaultPluginDescriptor.PluginSupplier<ConnectorDescriptor> pluginSupplier) Methods inherited from class de.iip_ecosphere.platform.support.plugins.SingletonPluginDescriptor
createPluginMethods inherited from class de.iip_ecosphere.platform.support.plugins.DefaultPluginDescriptor
createPlugin, getFurtherIds, getId, getType, initIds, initPluginClassMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.iip_ecosphere.platform.connectors.ConnectorDescriptor
getConnectorType, getName
-
Constructor Details
-
AbstractPluginChannelConnectorDescriptor
public AbstractPluginChannelConnectorDescriptor()Creates a descriptor instance. Concrete implementations must redefine the plugin id.
-
-
Method Details
-
initPluginSupplier
protected de.iip_ecosphere.platform.support.plugins.DefaultPluginDescriptor.PluginSupplier<ConnectorDescriptor> initPluginSupplier(de.iip_ecosphere.platform.support.plugins.DefaultPluginDescriptor.PluginSupplier<ConnectorDescriptor> pluginSupplier) - Overrides:
initPluginSupplierin classde.iip_ecosphere.platform.support.plugins.DefaultPluginDescriptor<ConnectorDescriptor>
-
initId
- Overrides:
initIdin classde.iip_ecosphere.platform.support.plugins.DefaultPluginDescriptor<ConnectorDescriptor>
-
createConnector
public <O,I, Connector<O,CO, CI, S extends AdapterSelector<O, I, CO, CI>, A extends ProtocolAdapter<O, I, CO, CI>> I, createConnectorCO, CI> (S selector, Supplier<ConnectorParameter> params, A... adapter) Description copied from interface:ConnectorDescriptorCreates a connector instance.- Specified by:
createConnectorin interfaceConnectorDescriptor- Type Parameters:
O- the output type from the underlying machine/platform/external sinksourceI- the input type to the underlying machine/platform/external sinksourceCO- the output type of the connectorCI- the input type of the connectorS- the protocol selector typeA- the protocol adapter type- Parameters:
selector- the protocol selector, may be null for noneparams- the connector parameters supplieradapter- the protocol adapters to create the connector for- Returns:
- the created connector
-
createConnector
public <O,I, Connector<O,CO, CI, A extends ProtocolAdapter<O, I, CO, CI>> I, createConnectorCO, CI> (Supplier<ConnectorParameter> params, A... adapter) Description copied from interface:ConnectorDescriptorCreates a connector instance.- Specified by:
createConnectorin interfaceConnectorDescriptor- Type Parameters:
O- the output type from the underlying machine/platform/external sinksourceI- the input type to the underlying machine/platform/external sinksourceCO- the output type of the connectorCI- the input type of the connectorA- the protocol adapter type- Parameters:
params- the connector parameters supplieradapter- the protocol adapters to create the connector for- Returns:
- the created connector
-
createConnectorImpl
protected <O,I, Connector<TO,CO, CI, A extends ChannelProtocolAdapter<TO, TI, CO, CI>> TI, createConnectorImplCO, CI> (Supplier<ConnectorParameter> params, A... adapter) Creates a connector instance based on adapted types.- Type Parameters:
O- the output type from the underlying machine/platform/external sinksourceI- the input type to the underlying machine/platform/external sinksourceCO- the output type of the connectorCI- the input type of the connectorA- the protocol adapter type- Parameters:
params- the connector parameters supplieradapter- the protocol adapters to create the connector for- Returns:
- the created connector
-
createConnectorImpl
protected abstract <O,I, Connector<TO,CO, CI, S extends ChannelAdapterSelector<TO, TI, CO, CI>, A extends ChannelProtocolAdapter<TO, TI, CO, CI>> TI, createConnectorImplCO, CI> (S selector, Supplier<ConnectorParameter> params, A... adapter) Creates a connector instance based on adapted types.- Type Parameters:
O- the output type from the underlying machine/platform/external sinksourceI- the input type to the underlying machine/platform/external sinksourceCO- the output type of the connectorCI- the input type of the connectorS- the protocol selector typeA- the protocol adapter type- Parameters:
selector- the protocol selector, may be null for noneparams- the connector parameters supplieradapter- the protocol adapters to create the connector for- Returns:
- the created connector
-