Package com.flowable.form.engine
Class FormEngines
java.lang.Object
com.flowable.form.engine.FormEngines
public abstract class FormEngines
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.List<org.flowable.common.engine.impl.EngineInfo>formEngineInfosprotected static java.util.Map<java.lang.String,org.flowable.common.engine.impl.EngineInfo>formEngineInfosByNameprotected static java.util.Map<java.lang.String,org.flowable.common.engine.impl.EngineInfo>formEngineInfosByResourceUrlprotected static java.util.Map<java.lang.String,FormEngine>formEngineMapprotected static booleanisInitializedstatic java.lang.StringNAME_DEFAULT -
Constructor Summary
Constructors Constructor Description FormEngines() -
Method Summary
Modifier and Type Method Description protected static FormEnginebuildFormEngine(java.net.URL resource)static voiddestroy()closes all form engines.static FormEnginegetDefaultFormEngine()static FormEnginegetFormEngine(java.lang.String formEngineName)Obtain a form engine by name.static org.flowable.common.engine.impl.EngineInfogetFormEngineInfo(java.lang.String formEngineName)Get initialization results.static java.util.List<org.flowable.common.engine.impl.EngineInfo>getFormEngineInfos()Get initialization results.static java.util.Map<java.lang.String,FormEngine>getFormEngines()provides access to form engine to application clients in a managed server environment.static voidinit()Initializes all form engines that can be found on the classpath for resourcesflowable.form.cfg.xmland for resourcesflowable-form-context.xml(Spring style configuration).protected static voidinitFormEngineFromSpringResource(java.net.URL resource)static booleanisInitialized()static voidregisterFormEngine(FormEngine formEngine)Registers the given form engine.static org.flowable.common.engine.impl.EngineInforetry(java.lang.String resourceUrl)retries to initialize a form engine that previously failed.static voidsetInitialized(boolean isInitialized)static voidunregister(FormEngine formEngine)Unregisters the given form engine.
-
Field Details
-
NAME_DEFAULT
public static final java.lang.String NAME_DEFAULT- See Also:
- Constant Field Values
-
isInitialized
protected static boolean isInitialized -
formEngineMap
-
formEngineInfosByName
protected static java.util.Map<java.lang.String,org.flowable.common.engine.impl.EngineInfo> formEngineInfosByName -
formEngineInfosByResourceUrl
protected static java.util.Map<java.lang.String,org.flowable.common.engine.impl.EngineInfo> formEngineInfosByResourceUrl -
formEngineInfos
protected static java.util.List<org.flowable.common.engine.impl.EngineInfo> formEngineInfos
-
-
Constructor Details
-
FormEngines
public FormEngines()
-
-
Method Details
-
init
public static void init()Initializes all form engines that can be found on the classpath for resourcesflowable.form.cfg.xmland for resourcesflowable-form-context.xml(Spring style configuration). -
initFormEngineFromSpringResource
protected static void initFormEngineFromSpringResource(java.net.URL resource) -
registerFormEngine
Registers the given form engine. NoEngineInfowill be available for this form engine. An engine that is registered will be closed when thedestroy()is called. -
unregister
Unregisters the given form engine. -
buildFormEngine
-
getFormEngineInfos
public static java.util.List<org.flowable.common.engine.impl.EngineInfo> getFormEngineInfos()Get initialization results. -
getFormEngineInfo
public static org.flowable.common.engine.impl.EngineInfo getFormEngineInfo(java.lang.String formEngineName)Get initialization results. Only info will we available for form engines which were added in theinit(). NoEngineInfois available for engines which were registered programmatically. -
getDefaultFormEngine
-
getFormEngine
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 org.flowable.common.engine.impl.EngineInfo retry(java.lang.String resourceUrl)retries to initialize a form engine that previously failed. -
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)
-