Package io.quarkus.qute
Annotation Type TemplateData
-
@Target(TYPE) @Retention(RUNTIME) @Repeatable(Container.class) public @interface TemplateData
This annotation is used to mark a target type for which a value resolver should be automatically generated. Note that non-public members, constructors, static initializers, static, synthetic and void methods are always ignored.If the
namespace()
is set to a non-empty value then a namespace resolver is automatically generated to access static fields and methos of the target class.- See Also:
ValueResolver
,NamespaceResolver
-
-
Field Summary
Fields Modifier and Type Fields Description static String
SIMPLENAME
Constant value fornamespace()
indicating that the simple name of the target class should be used.static String
UNDERSCORED_FQCN
Constant value fornamespace()
indicating that the fully qualified class name of the target class should be used.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description String[]
ignore
The regular expressions that are used to match the members that should be ignored.boolean
ignoreSuperclasses
If set to true do not automatically analyze superclasses.String
namespace
If set to a non-empty value then a namespace resolver is automatically generated to access static fields and methos of the target class.boolean
properties
If set to true include only properties: instance fields and methods without params.Class<?>
target
The class a value resolver should be generated for.
-
-
-
Field Detail
-
UNDERSCORED_FQCN
static final String UNDERSCORED_FQCN
Constant value fornamespace()
indicating that the fully qualified class name of the target class should be used. Dots and dollar signs are replaced by underscores.
-
-
-
SIMPLENAME
static final String SIMPLENAME
Constant value fornamespace()
indicating that the simple name of the target class should be used.
-
-
Element Detail
-
target
Class<?> target
The class a value resolver should be generated for. By default, the annotated type.- Default:
- io.quarkus.qute.TemplateData.class
-
-
-
ignore
String[] ignore
The regular expressions that are used to match the members that should be ignored.- Default:
- {}
-
-
-
namespace
String namespace
If set to a non-empty value then a namespace resolver is automatically generated to access static fields and methos of the target class.By default, the namespace is the FQCN of the target class where dots and dollar signs are replaced by underscores, for example the namespace for a class with name
org.acme.Foo
isorg_acme_Foo
.Note that a namespace can only consist of alphanumeric characters and underscores.
- Default:
- "<<undescored fqcn>>"
-
-