Annotation Interface Language
@Retention(RUNTIME)
@Documented
@Target(TYPE)
@ServiceFactory("language")
public @interface Language
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
value
String value -
functionsClass
Class<?> functionsClassThe class that contains all the name of functions that are supported by the language. The name of the functions are defined asStringconstants in the functions class. The class to provide can be any class but by convention, we would expect a class whose name is of type xxxConstants where xxx is the name of the corresponding language like for example SimpleConstants for the language camel-simple. The metadata of a given functions are retrieved directly from the annotation@Metadataadded to theStringconstant representing its name and defined in the functions class.- Default:
void.class
-
operatorsClass
Class<?> operatorsClassThe class that contains all the name of operators that are supported by the language. The name of the operators are defined asStringconstants in the operators class. The class to provide can be any class but by convention, we would expect a class whose name is of type xxxOperatorConstants where xxx is the name of the corresponding language like for example SimpleOperatorConstants for the language camel-simple. The metadata of a given operator are retrieved directly from the annotation@Metadataadded to theStringconstant representing its name and defined in the operators class.- Default:
void.class
-