Package com.flowable.content.engine
Class ContentEngines
- java.lang.Object
-
- com.flowable.content.engine.ContentEngines
-
public abstract class ContentEngines extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static List<EngineInfo>
contentEngineInfos
protected static Map<String,EngineInfo>
contentEngineInfosByName
protected static Map<String,EngineInfo>
contentEngineInfosByResourceUrl
protected static Map<String,ContentEngine>
contentEngineMap
protected static boolean
isInitialized
static String
NAME_DEFAULT
-
Constructor Summary
Constructors Constructor Description ContentEngines()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected 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>
getContentEngineInfos()
Get initialization results.static Map<String,ContentEngine>
getContentEngines()
Provides access to content engine to application clients in a managed server environment.static ContentEngine
getDefaultContentEngine()
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
isInitialized()
static void
registerContentEngine(ContentEngine contentEngine)
Registers the given content engine.static EngineInfo
retry(String resourceUrl)
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 Detail
-
NAME_DEFAULT
public static final String NAME_DEFAULT
- See Also:
- Constant Field Values
-
isInitialized
protected static boolean isInitialized
-
contentEngineMap
protected static Map<String,ContentEngine> contentEngineMap
-
contentEngineInfosByName
protected static Map<String,EngineInfo> contentEngineInfosByName
-
contentEngineInfosByResourceUrl
protected static Map<String,EngineInfo> contentEngineInfosByResourceUrl
-
contentEngineInfos
protected static List<EngineInfo> contentEngineInfos
-
-
Method Detail
-
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
protected static void initContentEngineFromSpringResource(URL resource)
-
registerContentEngine
public static void registerContentEngine(ContentEngine contentEngine)
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
public static void unregister(ContentEngine contentEngine)
Unregisters the given content engine.
-
buildContentEngine
protected static ContentEngine buildContentEngine(URL resource)
-
getContentEngineInfos
public static List<EngineInfo> getContentEngineInfos()
Get initialization results.
-
getContentEngineInfo
public static EngineInfo getContentEngineInfo(String contentEngineName)
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
public static ContentEngine getDefaultContentEngine()
-
getContentEngine
public static ContentEngine getContentEngine(String contentEngineName)
Obtain a content engine by name.- Parameters:
contentEngineName
- is the name of the content engine or null for the default content engine.
-
retry
public static EngineInfo retry(String resourceUrl)
Retries to initialize a content engine that previously failed.
-
getContentEngines
public static Map<String,ContentEngine> 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)
-
-