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>contentEngineInfosprotected static Map<String,EngineInfo>contentEngineInfosByNameprotected static Map<String,EngineInfo>contentEngineInfosByResourceUrlprotected static Map<String,ContentEngine>contentEngineMapprotected static booleanisInitializedstatic StringNAME_DEFAULT
-
Constructor Summary
Constructors Constructor Description ContentEngines()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static ContentEnginebuildContentEngine(URL resource)static voiddestroy()Closes all content engines.static ContentEnginegetContentEngine(String contentEngineName)Obtain a content engine by name.static EngineInfogetContentEngineInfo(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 ContentEnginegetDefaultContentEngine()static voidinit()Initializes all content engines that can be found on the classpath for resourcesflowable.content.cfg.xmland for resourcesflowable-context.xml(Spring style configuration).protected static voidinitContentEngineFromSpringResource(URL resource)static booleanisInitialized()static voidregisterContentEngine(ContentEngine contentEngine)Registers the given content engine.static EngineInforetry(String resourceUrl)Retries to initialize a content engine that previously failed.static voidsetInitialized(boolean isInitialized)static voidunregister(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.xmland 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. NoContentEnginewill 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(). NoEngineInfois 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)
-
-