Package org.apache.camel.language.joor
Annotation Interface Java
@Retention(RUNTIME)
@Documented
@Target({FIELD,METHOD,PARAMETER})
@LanguageAnnotation(language="java",
factory=JavaAnnotationExpressionFactory.class)
public @interface Java
Used to inject a Java (joor) expression into a field, property, method or parameter when using Bean Integration.
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanWhether the expression should be pre compiled once during initialization phase.Class<?> The desired return type.booleanWhether single quotes can be used as replacement for double quotes.
-
Element Details
-
value
String value -
preCompile
boolean preCompileWhether the expression should be pre compiled once during initialization phase. If this is turned off, then the expression is reloaded and compiled on each evaluation.- Default:
true
-
singleQuotes
boolean singleQuotesWhether single quotes can be used as replacement for double quotes. This is convenient when you need to work with strings inside strings.- Default:
true
-
resultType
Class<?> resultTypeThe desired return type.- Default:
java.lang.Object.class
-