Package io.quarkus.qute
Interface TemplateLocator
-
- All Superinterfaces:
WithPriority
public interface TemplateLocator extends WithPriority
Locates template sources. The locator with higher priority takes precedence. Quarkus automatically register all CDI beans that implement this interface withEngineBuilder.addLocator(TemplateLocator)
.- See Also:
Engine.getTemplate(String)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
TemplateLocator.TemplateLocation
-
Field Summary
-
Fields inherited from interface io.quarkus.qute.WithPriority
DEFAULT_PRIORITY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<TemplateLocator.TemplateLocation>
locate(String id)
Must returnOptional.empty()
if it's not possible to locate a template with the specified id.-
Methods inherited from interface io.quarkus.qute.WithPriority
getPriority
-
-
-
-
Method Detail
-
locate
Optional<TemplateLocator.TemplateLocation> locate(String id)
Must returnOptional.empty()
if it's not possible to locate a template with the specified id.- Parameters:
id
-- Returns:
- the template location for the given id
-
-