Package io.quarkus.qute
Annotation Interface Locate
IMPORTANT: This annotation only works in a fully integrated environment; such as a Quarkus application.
A customTemplateLocators are not available during the build time, therefore Template located by
the locator must disable its validation by annotating the TemplateLocator with this annotation. If
TemplateLocator locates Template and fails to declare the fact this way, an exception is thrown and the build
fails.
An example:
@Locate("/my/custom/location")
public class MyCustomLocator implements TemplateLocator {
@Override
public Optional locate(String s) {
return Optional.empty();
}
}
-
Nested Class Summary
Nested Classes -
Required Element Summary
Required Elements
-
Element Details
-
value
String value- Returns:
- regex pattern matching all the
Template.getId()s located by theTemplateLocator
-