Package org.apache.camel.spi.annotations
Annotation Interface Language
@Retention(RUNTIME)
@Documented
@Target(TYPE)
@ServiceFactory("language")
public @interface Language
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionClass
<?> The class that contains all the name of functions that are supported by the language.
-
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 asString
constants 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@Metadata
added to theString
constant representing its name and defined in the functions class.- Default:
void.class
-