Package com.flowable.app.engine
Class AppEngines
- java.lang.Object
-
- com.flowable.app.engine.AppEngines
-
public abstract class AppEngines extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static List<EngineInfo>
appEngineInfos
protected static Map<String,EngineInfo>
appEngineInfosByName
protected static Map<String,EngineInfo>
appEngineInfosByResourceUrl
protected static Map<String,AppEngine>
appEngines
protected static boolean
isInitialized
static String
NAME_DEFAULT
-
Constructor Summary
Constructors Constructor Description AppEngines()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected 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>
getAppEngineInfos()
Get initialization results.static Map<String,AppEngine>
getAppEngines()
provides access to app engine to application clients in a managed server environment.static AppEngine
getDefaultAppEngine()
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
isInitialized()
static void
registerAppEngine(AppEngine appEngine)
Registers the given app engine.static EngineInfo
retry(String resourceUrl)
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 Detail
-
NAME_DEFAULT
public static final String NAME_DEFAULT
- See Also:
- Constant Field Values
-
isInitialized
protected static boolean isInitialized
-
appEngineInfosByName
protected static Map<String,EngineInfo> appEngineInfosByName
-
appEngineInfosByResourceUrl
protected static Map<String,EngineInfo> appEngineInfosByResourceUrl
-
appEngineInfos
protected static List<EngineInfo> appEngineInfos
-
-
Method Detail
-
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
protected static void initAppEngineFromSpringResource(URL resource)
-
registerAppEngine
public static void registerAppEngine(AppEngine appEngine)
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
public static void unregister(AppEngine appEngine)
Unregisters the given app engine.
-
getAppEngineInfos
public static List<EngineInfo> getAppEngineInfos()
Get initialization results.
-
getAppEngineInfo
public static EngineInfo getAppEngineInfo(String appEngineName)
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
public static AppEngine getDefaultAppEngine()
-
getAppEngine
public static AppEngine getAppEngine(String appEngineName)
Obtain an app engine by name.- Parameters:
appEngineName
- is the name of the app engine or null for the default app engine.
-
retry
public static EngineInfo retry(String resourceUrl)
retries to initialize an app engine that previously failed.
-
getAppEngines
public static Map<String,AppEngine> 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)
-
-