Annotation Type Locate


  • @Target(TYPE)
    @Retention(RUNTIME)
    @Repeatable(Locates.class)
    public @interface Locate
    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();
         }
    
     }
     
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String value