Package com.flowable.app.engine
Class AppEngines
java.lang.Object
com.flowable.app.engine.AppEngines
-
Field Summary
Modifier and TypeFieldDescriptionprotected static List<EngineInfo>
protected static Map<String,
EngineInfo> protected static Map<String,
EngineInfo> protected static boolean
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static AppEngine
buildAppEngine
(URL resource) static void
destroy()
closes all app engines.static AppEngine
getAppEngine
(String appEngineName) Obtain an app engine by name.static EngineInfo
getAppEngineInfo
(String appEngineName) Get initialization results.static List<EngineInfo>
Get initialization results.provides access to app engine to application clients in a managed server environment.static AppEngine
static void
init()
Initializes all App engines that can be found on the classpath for resourcesflowable.app.cfg.xml
and for resourcesflowable-app-context.xml
(Spring style configuration).protected static void
initAppEngineFromSpringResource
(URL resource) static boolean
static void
registerAppEngine
(AppEngine appEngine) Registers the given app engine.static EngineInfo
retries to initialize an app engine that previously failed.static void
setInitialized
(boolean isInitialized) static void
unregister
(AppEngine appEngine) Unregisters the given app engine.
-
Field Details
-
NAME_DEFAULT
- See Also:
-
isInitialized
protected static boolean isInitialized -
appEngines
-
appEngineInfosByName
-
appEngineInfosByResourceUrl
-
appEngineInfos
-
-
Constructor Details
-
AppEngines
public AppEngines()
-
-
Method Details
-
init
public static void init()Initializes all App engines that can be found on the classpath for resourcesflowable.app.cfg.xml
and for resourcesflowable-app-context.xml
(Spring style configuration). -
initAppEngineFromSpringResource
-
registerAppEngine
Registers the given app engine. NoEngineInfo
will be available for this app engine. An engine that is registered will be closed when thedestroy()
is called. -
unregister
Unregisters the given app engine. -
buildAppEngine
-
getAppEngineInfos
Get initialization results. -
getAppEngineInfo
Get initialization results. Only info will we available for app engines which were added in theinit()
. NoEngineInfo
is available for engines which were registered programmatically. -
getDefaultAppEngine
-
getAppEngine
Obtain an app engine by name.- Parameters:
appEngineName
- is the name of the app engine or null for the default app engine.
-
retry
retries to initialize an app engine that previously failed. -
getAppEngines
provides access to app engine to application clients in a managed server environment. -
destroy
public static void destroy()closes all app engines. This method should be called when the server shuts down. -
isInitialized
public static boolean isInitialized() -
setInitialized
public static void setInitialized(boolean isInitialized)
-