Package com.flowable.template.engine
Class TemplateEngines
java.lang.Object
com.flowable.template.engine.TemplateEngines
public abstract class TemplateEngines
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description protected static booleanisInitializedstatic java.lang.StringNAME_DEFAULTprotected static java.util.Map<java.lang.String,TemplateEngine>templateEngines -
Constructor Summary
Constructors Constructor Description TemplateEngines() -
Method Summary
Modifier and Type Method Description static voiddestroy()Closes all template engines.static TemplateEnginegetDefaultTemplateEngine()static TemplateEnginegetTemplateEngine(java.lang.String templateEngineName)Obtain an template engine by name.static java.util.Map<java.lang.String,TemplateEngine>getTemplateEngines()Provides access to template engines to application clients in a managed server environment.static booleanisInitialized()static voidregisterEngine(TemplateEngine templateEngine)Registers the given template engine.static voidsetInitialized(boolean isInitialized)static voidunregister(TemplateEngine templateEngine)Unregisters the given template engine.
-
Field Details
-
NAME_DEFAULT
public static final java.lang.String NAME_DEFAULT- See Also:
- Constant Field Values
-
isInitialized
protected static boolean isInitialized -
templateEngines
-
-
Constructor Details
-
TemplateEngines
public TemplateEngines()
-
-
Method Details
-
registerEngine
Registers the given template engine. NoEngineInfowill be available for this template engine. An engine that is registered will be closed when thedestroy()is called. -
unregister
Unregisters the given template engine. -
getDefaultTemplateEngine
-
getTemplateEngine
Obtain an template engine by name.- Parameters:
templateEngineName- is the name of the template engine
-
getTemplateEngines
Provides access to template engines to application clients in a managed server environment. -
destroy
public static void destroy()Closes all template engines. This method should be called when the server shuts down. -
isInitialized
public static boolean isInitialized() -
setInitialized
public static void setInitialized(boolean isInitialized)
-