Annotation Interface DataTypeTransformer
@Retention(RUNTIME)
@Documented
@Target(TYPE)
@ServiceFactory("transformer")
public @interface DataTypeTransformer
Marks a
Transformer implementation as a data type transformer, identified by its name and/or its from/to
DataTypes.
Classpath-scanning transformer loaders discover annotated classes and register them in the
TransformerRegistry, so they can be detected and applied when a route declares input/output data types via a
Contract. Provide a unique name(), or a fromType()/toType() pair, so the
transformer can be referenced or auto-detected.
See Transformer in the Camel user manual.- Since:
- 4.0
- See Also:
-
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
-