Package org.apache.camel.spi
Annotation Interface DataTypeTransformer
@Retention(RUNTIME)
@Documented
@Target(TYPE)
@ServiceFactory("transformer")
public @interface DataTypeTransformer
Annotation to configure a data type transformer with either specifying its name or from/to data types.
The annotation is used by specific classpath scanning data type loaders to automatically add the data types to a
registry.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionA human-readable description of what this transformer can do.Data type representing the input of the transformation.Data type transformer name.Data type representing the result of the transformation.
-
Element Details
-
name
String nameData type transformer name. Identifies the data type transformer. It Should be unique in the Camel context. It Can be a combination of scheme and name. It Is used to detect/reference the transformer when specifying input/output data types on routes.- Default:
""
-
fromType
String fromTypeData type representing the input of the transformation. Also used to detect the transformer.- Default:
""
-
toType
String toTypeData type representing the result of the transformation. Also used to detect the transformer.- Default:
""
-
description
String descriptionA human-readable description of what this transformer can do.- Default:
""
-