Package com.flowable.template.engine
Class TemplateEngines
- java.lang.Object
-
- com.flowable.template.engine.TemplateEngines
-
public abstract class TemplateEngines extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static boolean
isInitialized
static String
NAME_DEFAULT
protected static Map<String,TemplateEngine>
templateEngines
-
Constructor Summary
Constructors Constructor Description TemplateEngines()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
destroy()
Closes all template engines.static TemplateEngine
getDefaultTemplateEngine()
static TemplateEngine
getTemplateEngine(String templateEngineName)
Obtain an template engine by name.static Map<String,TemplateEngine>
getTemplateEngines()
Provides access to template engines to application clients in a managed server environment.static boolean
isInitialized()
static void
registerEngine(TemplateEngine templateEngine)
Registers the given template engine.static void
setInitialized(boolean isInitialized)
static void
unregister(TemplateEngine templateEngine)
Unregisters the given template engine.
-
-
-
Field Detail
-
NAME_DEFAULT
public static final String NAME_DEFAULT
- See Also:
- Constant Field Values
-
isInitialized
protected static boolean isInitialized
-
templateEngines
protected static Map<String,TemplateEngine> templateEngines
-
-
Method Detail
-
registerEngine
public static void registerEngine(TemplateEngine templateEngine)
Registers the given template engine. NoEngineInfo
will be available for this template engine. An engine that is registered will be closed when thedestroy()
is called.
-
unregister
public static void unregister(TemplateEngine templateEngine)
Unregisters the given template engine.
-
getDefaultTemplateEngine
public static TemplateEngine getDefaultTemplateEngine()
-
getTemplateEngine
public static TemplateEngine getTemplateEngine(String templateEngineName)
Obtain an template engine by name.- Parameters:
templateEngineName
- is the name of the template engine
-
getTemplateEngines
public static Map<String,TemplateEngine> 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)
-
-