Annotation Interface DataTypeTransformer


@Retention(RUNTIME) @Documented @Target(TYPE) 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
    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. Should be unique in the Camel context. Can be a combination of scheme and name. Is used to detect/reference the transformer when specifying input/output data types on routes.
      Returns:
      the data type transformer name.
      Default:
      ""
    • fromType

      String fromType
      Data type representing the input of the transformation. Also used to detect the transformer.
      Returns:
      Default:
      ""
    • toType

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