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 -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe message body media type.The media type to output.Class<?> The desired return type from the evaluated datasonnet.Source to use, instead of message body.
-
Element Details
-
value
String valueThe datasonnet expression which will be applied -
resultType
Class<?> resultTypeThe desired return type from the evaluated datasonnet.- Default:
java.lang.Object.class
-
source
String sourceSource 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 bodyMediaTypeThe message body media type.- Default:
""
-
outputMediaType
String outputMediaTypeThe media type to output.- Default:
""
-