Annotation Type TemplateEnum


  • @Target(TYPE)
    @Retention(RUNTIME)
    public @interface TemplateEnum

    IMPORTANT: This annotation only works in a fully integrated environment; such as a Quarkus application.

    This annotation is functionally equivalent to @TemplateData(namespace = TemplateData.SIMPLENAME), i.e. a namespace resolver is automatically generated for the target enum. The simple name of the target enum is used as the namespace. The generated namespace resolver can be used to access enum constants, static methods, etc.

    If an enum also declares the TemplateData annotation or is specified by any TemplateData.target() then the TemplateEnum annotation is ignored.

    TemplateEnum declared on non-enum classes is ignored.

    See Also:
    TemplateData, NamespaceResolver