Package io.quarkus.qute
Annotation Interface TemplateData
IMPORTANT: This annotation only works in a fully integrated environment; such as a Quarkus application.
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:
-
Nested Class Summary
Nested Classes -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]The regular expressions that are used to match the members that should be ignored.booleanIf set to true do not automatically analyze superclasses.If set to a non-empty value then a namespace resolver is automatically generated to access static fields and methos of the target class.booleanIf set to true include only properties: instance fields and methods without params.Class<?>The class a value resolver should be generated for. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant value fornamespace()indicating that the simple name of the target class should be used.static final StringConstant value fornamespace()indicating that the fully qualified class name of the target class should be used.
-
Field Details
-
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.- See Also:
-
SIMPLENAME
Constant value fornamespace()indicating that the simple name of the target class should be used.- See Also:
-
-
Element Details
-
target
Class<?> targetThe class a value resolver should be generated for. By default, the annotated type.- Default:
- io.quarkus.qute.TemplateData.class
-
ignore
String[] ignoreThe regular expressions that are used to match the members that should be ignored.- Default:
- {}
-
ignoreSuperclasses
boolean ignoreSuperclassesIf set to true do not automatically analyze superclasses.- Default:
- false
-
properties
boolean propertiesIf set to true include only properties: instance fields and methods without params.- Default:
- false
-
namespace
String namespaceIf 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.Fooisorg_acme_Foo.Note that a namespace can only consist of alphanumeric characters and underscores.
- Default:
- "<<undescored fqcn>>"
-