Class WebTemplateRegistry
java.lang.Object
com.foreach.across.modules.web.template.WebTemplateRegistry
Registry of all known WebTemplate instances with their unique name.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
void
register
(NamedWebTemplateProcessor webTemplateProcessor) Register a WebTemplateProcessor instance.void
register
(String name, WebTemplateProcessor webTemplateProcessor) Register a WebTemplateProcessor instance under a unique name.void
setDefaultTemplateName
(String defaultTemplateName) void
unregister
(NamedWebTemplateProcessor webTemplateProcessor) void
unregister
(String name)
-
Constructor Details
-
WebTemplateRegistry
public WebTemplateRegistry()
-
-
Method Details
-
register
Register a WebTemplateProcessor instance.- Parameters:
webTemplateProcessor
- Named WebTemplateProcessor instance.
-
unregister
-
register
Register a WebTemplateProcessor instance under a unique name.- Parameters:
name
- Unique name of the instance.webTemplateProcessor
- WebTemplateProcessor instance.
-
unregister
-
getDefaultTemplateName
- Returns:
- Name of the default template that will be applied if no template is specified.
-
hasDefaultTemplate
public boolean hasDefaultTemplate() -
setDefaultTemplateName
-
get
-
clear
public void clear() -
getTemplateProcessors
-