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 Elements
    Modifier and Type
    Optional Element
    Description
    A 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 name
      Data 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 fromType
      Data type representing the input of the transformation. Also used to detect the transformer.
      Default:
      ""
    • toType

      String toType
      Data type representing the result of the transformation. Also used to detect the transformer.
      Default:
      ""
    • description

      String description
      A human-readable description of what this transformer can do.
      Default:
      ""