Annotation Interface Locate


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

A custom TemplateLocators 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
    Modifier and Type
    Class
    Description
    static @interface 
    Enables repeating of Locate.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description