Package com.flowable.content.engine
Class ContentEngines
java.lang.Object
com.flowable.content.engine.ContentEngines
-
Field Summary
Modifier and TypeFieldDescriptionprotected static List<EngineInfo>
protected static Map<String,
EngineInfo> protected static Map<String,
EngineInfo> protected static Map<String,
ContentEngine> protected static boolean
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static ContentEngine
buildContentEngine
(URL resource) static void
destroy()
Closes all content engines.static ContentEngine
getContentEngine
(String contentEngineName) Obtain a content engine by name.static EngineInfo
getContentEngineInfo
(String contentEngineName) Get initialization results.static List<EngineInfo>
Get initialization results.static Map<String,
ContentEngine> Provides access to content engine to application clients in a managed server environment.static ContentEngine
static void
init()
Initializes all content engines that can be found on the classpath for resourcesflowable.content.cfg.xml
and for resourcesflowable-context.xml
(Spring style configuration).protected static void
initContentEngineFromSpringResource
(URL resource) static boolean
static void
registerContentEngine
(ContentEngine contentEngine) Registers the given content engine.static EngineInfo
Retries to initialize a content engine that previously failed.static void
setInitialized
(boolean isInitialized) static void
unregister
(ContentEngine contentEngine) Unregisters the given content engine.
-
Field Details
-
NAME_DEFAULT
- See Also:
-
isInitialized
protected static boolean isInitialized -
contentEngineMap
-
contentEngineInfosByName
-
contentEngineInfosByResourceUrl
-
contentEngineInfos
-
-
Constructor Details
-
ContentEngines
public ContentEngines()
-
-
Method Details
-
init
public static void init()Initializes all content engines that can be found on the classpath for resourcesflowable.content.cfg.xml
and for resourcesflowable-context.xml
(Spring style configuration). -
initContentEngineFromSpringResource
-
registerContentEngine
Registers the given content engine. NoContentEngine
will be available for this content engine. An engine that is registered will be closed when thedestroy()
is called. -
unregister
Unregisters the given content engine. -
buildContentEngine
-
getContentEngineInfos
Get initialization results. -
getContentEngineInfo
Get initialization results. Only info will we available for content engines which were added in theinit()
. NoEngineInfo
is available for engines which were registered programmatically. -
getDefaultContentEngine
-
getContentEngine
Obtain a content engine by name.- Parameters:
contentEngineName
- is the name of the content engine or null for the default content engine.
-
retry
Retries to initialize a content engine that previously failed. -
getContentEngines
Provides access to content engine to application clients in a managed server environment. -
destroy
public static void destroy()Closes all content engines. This method should be called when the server shuts down. -
isInitialized
public static boolean isInitialized() -
setInitialized
public static void setInitialized(boolean isInitialized)
-