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>
SpecializedConnectorOutputTypeAdapterto handle the reception channel.- Author:
- Holger Eichelberger, SSE
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceChanneledConnectorOutputTypeAdapter.ChanneledSerializer<T>A 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
Fields Modifier and Type Field Description private ChanneledConnectorOutputTypeAdapter.ChanneledSerializer<T>serializer
-
Constructor Summary
Constructors Constructor Description ChanneledConnectorOutputTypeAdapter(ChanneledConnectorOutputTypeAdapter.ChanneledSerializer<T> serializer)Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tto(java.lang.String channel, byte[] source)Translates a source value into a target value ("output to external").-
Methods inherited from class de.iip_ecosphere.platform.connectors.types.ConnectorOutputTypeAdapter
getModelAccess, getSourceType, getTargetType, initializeModelAccess, setModelAccess, to
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.iip_ecosphere.platform.connectors.types.ChanneledConnectorOutputTypeTranslator
to
-
-
-
-
Field Detail
-
serializer
private ChanneledConnectorOutputTypeAdapter.ChanneledSerializer<T> serializer
-
-
Constructor Detail
-
ChanneledConnectorOutputTypeAdapter
public ChanneledConnectorOutputTypeAdapter(ChanneledConnectorOutputTypeAdapter.ChanneledSerializer<T> serializer)
Creates an instance.- Parameters:
serializer- the serializer to adapt
-
-
Method Detail
-
to
public T to(java.lang.String channel, byte[] source) throws java.io.IOException
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:
java.io.IOException- in case that translation fails
-
-