Annotation Interface Datasonnet


@Retention(RUNTIME) @Documented @Target({FIELD,METHOD,PARAMETER}) @LanguageAnnotation(language="datasonnet", factory=DatasonnetAnnotationExpressionFactory.class) public @interface Datasonnet
Used to inject a DataSonnet expression into a field, property, method or parameter when using Bean Integration.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The datasonnet expression which will be applied
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The message body media type.
    The media type to output.
    The desired return type from the evaluated datasonnet.
    Source to use, instead of message body.
  • Element Details

    • value

      String value
      The datasonnet expression which will be applied
    • resultType

      Class<?> resultType
      The desired return type from the evaluated datasonnet.
      Default:
      java.lang.Object.class
    • source

      String source
      Source to use, instead of message body. You can prefix with variable:, header:, or property: to specify kind of source. Otherwise, the source is assumed to be a variable. Use empty or null to use default source, which is the message body.
      Default:
      ""
    • bodyMediaType

      String bodyMediaType
      The message body media type.
      Default:
      ""
    • outputMediaType

      String outputMediaType
      The media type to output.
      Default:
      ""