Class ChanneledConnectorOutputTypeAdapter<T>
java.lang.Object
de.iip_ecosphere.platform.connectors.types.ConnectorOutputTypeAdapter<T>
de.iip_ecosphere.platform.connectors.types.ChanneledConnectorOutputTypeAdapter<T>
- Type Parameters:
T- the target type (seeOutputTypeTranslator)
- All Implemented Interfaces:
ModelAccessProvider,ChanneledConnectorOutputTypeTranslator<byte[],,T> ConnectorOutputTypeTranslator<byte[],,T> de.iip_ecosphere.platform.transport.serialization.OutputTypeTranslator<byte[],T>
public class ChanneledConnectorOutputTypeAdapter<T>
extends ConnectorOutputTypeAdapter<T>
implements ChanneledConnectorOutputTypeTranslator<byte[],T>
Specialized
ConnectorOutputTypeAdapter to handle the reception channel.- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA serializer that receives the reception channel name on serialization.Nested classes/interfaces inherited from interface de.iip_ecosphere.platform.connectors.model.ModelAccessProvider
ModelAccessProvider.IOModelAccessFunction, ModelAccessProvider.IOVoidFunction -
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
ConstructorsConstructorDescriptionChanneledConnectorOutputTypeAdapter(ChanneledConnectorOutputTypeAdapter.ChanneledSerializer<T> serializer) Creates an instance. -
Method Summary
Methods inherited from class de.iip_ecosphere.platform.connectors.types.ConnectorOutputTypeAdapter
getModelAccess, getSourceType, getTargetType, initializeModelAccess, setModelAccess, toMethods 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.types.ChanneledConnectorOutputTypeTranslator
to
-
Field Details
-
serializer
-
-
Constructor Details
-
ChanneledConnectorOutputTypeAdapter
public ChanneledConnectorOutputTypeAdapter(ChanneledConnectorOutputTypeAdapter.ChanneledSerializer<T> serializer) Creates an instance.- Parameters:
serializer- the serializer to adapt
-
-
Method Details
-
to
Description copied from interface:ChanneledConnectorOutputTypeTranslatorTranslates a source value into a target value ("output to external").- Specified by:
toin interfaceChanneledConnectorOutputTypeTranslator<byte[],T> - Parameters:
channel- the channel the value was received onsource- the source value to be translated- Returns:
- the target value
- Throws:
IOException- in case that translation fails
-