Annotation Interface Language


@Retention(RUNTIME) @Documented @Target(TYPE) @ServiceFactory("language") public @interface Language
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The class that contains all the name of functions that are supported by the language.
  • Element Details

    • value

      String value
    • functionsClass

      Class<?> functionsClass
      The class that contains all the name of functions that are supported by the language. The name of the functions are defined as String 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 the String constant representing its name and defined in the functions class.
      Default:
      void.class