Package com.flowable.form.engine
Class FormEngines
- java.lang.Object
-
- com.flowable.form.engine.FormEngines
-
public abstract class FormEngines extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static List<EngineInfo>
formEngineInfos
protected static Map<String,EngineInfo>
formEngineInfosByName
protected static Map<String,EngineInfo>
formEngineInfosByResourceUrl
protected static Map<String,FormEngine>
formEngineMap
protected static boolean
isInitialized
static String
NAME_DEFAULT
-
Constructor Summary
Constructors Constructor Description FormEngines()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static FormEngine
buildFormEngine(URL resource)
static void
destroy()
closes all form engines.static FormEngine
getDefaultFormEngine()
static FormEngine
getFormEngine(String formEngineName)
Obtain a form engine by name.static EngineInfo
getFormEngineInfo(String formEngineName)
Get initialization results.static List<EngineInfo>
getFormEngineInfos()
Get initialization results.static Map<String,FormEngine>
getFormEngines()
provides access to form engine to application clients in a managed server environment.static void
init()
Initializes all form engines that can be found on the classpath for resourcesflowable.form.cfg.xml
and for resourcesflowable-form-context.xml
(Spring style configuration).protected static void
initFormEngineFromSpringResource(URL resource)
static boolean
isInitialized()
static void
registerFormEngine(FormEngine formEngine)
Registers the given form engine.static EngineInfo
retry(String resourceUrl)
retries to initialize a form engine that previously failed.static void
setInitialized(boolean isInitialized)
static void
unregister(FormEngine formEngine)
Unregisters the given form engine.
-
-
-
Field Detail
-
NAME_DEFAULT
public static final String NAME_DEFAULT
- See Also:
- Constant Field Values
-
isInitialized
protected static boolean isInitialized
-
formEngineMap
protected static Map<String,FormEngine> formEngineMap
-
formEngineInfosByName
protected static Map<String,EngineInfo> formEngineInfosByName
-
formEngineInfosByResourceUrl
protected static Map<String,EngineInfo> formEngineInfosByResourceUrl
-
formEngineInfos
protected static List<EngineInfo> formEngineInfos
-
-
Method Detail
-
init
public static void init()
Initializes all form engines that can be found on the classpath for resourcesflowable.form.cfg.xml
and for resourcesflowable-form-context.xml
(Spring style configuration).
-
initFormEngineFromSpringResource
protected static void initFormEngineFromSpringResource(URL resource)
-
registerFormEngine
public static void registerFormEngine(FormEngine formEngine)
Registers the given form engine. NoEngineInfo
will be available for this form engine. An engine that is registered will be closed when thedestroy()
is called.
-
unregister
public static void unregister(FormEngine formEngine)
Unregisters the given form engine.
-
buildFormEngine
protected static FormEngine buildFormEngine(URL resource)
-
getFormEngineInfos
public static List<EngineInfo> getFormEngineInfos()
Get initialization results.
-
getFormEngineInfo
public static EngineInfo getFormEngineInfo(String formEngineName)
Get initialization results. Only info will we available for form engines which were added in theinit()
. NoEngineInfo
is available for engines which were registered programmatically.
-
getDefaultFormEngine
public static FormEngine getDefaultFormEngine()
-
getFormEngine
public static FormEngine getFormEngine(String formEngineName)
Obtain a form engine by name.- Parameters:
formEngineName
- is the name of the form engine or null for the default form engine.
-
retry
public static EngineInfo retry(String resourceUrl)
retries to initialize a form engine that previously failed.
-
getFormEngines
public static Map<String,FormEngine> getFormEngines()
provides access to form engine to application clients in a managed server environment.
-
destroy
public static void destroy()
closes all form engines. This method should be called when the server shuts down.
-
isInitialized
public static boolean isInitialized()
-
setInitialized
public static void setInitialized(boolean isInitialized)
-
-