Package org.flowable.eventregistry.impl
Class EventRegistryEngines
- java.lang.Object
-
- org.flowable.eventregistry.impl.EventRegistryEngines
-
public abstract class EventRegistryEngines extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static List<EngineInfo>eventRegistryEngineInfosprotected static Map<String,EngineInfo>eventRegistryEngineInfosByNameprotected static Map<String,EngineInfo>eventRegistryEngineInfosByResourceUrlprotected static Map<String,EventRegistryEngine>eventRegistryEnginesprotected static booleanisInitializedstatic StringNAME_DEFAULT
-
Constructor Summary
Constructors Constructor Description EventRegistryEngines()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static EventRegistryEnginebuildEventRegistryEngine(URL resource)static voiddestroy()closes all event registry engines.static EventRegistryEnginegetDefaultEventRegistryEngine()static EventRegistryEnginegetEventRegistryEngine(String eventRegistryEngineName)Obtain an event registry engine by name.static EngineInfogetEventRegistryEngineInfo(String eventRegistryEngineName)Get initialization results.static List<EngineInfo>getEventRegistryEngineInfos()Get initialization results.static Map<String,EventRegistryEngine>getEventRegistryEngines()provides access to event registry engine to application clients in a managed server environment.static voidinit()Initializes all event registry engines that can be found on the classpath for resourcesflowable.eventregistry.cfg.xmland for resourcesflowable-eventregistry-context.xml(Spring style configuration).protected static voidinitEventRegistryEngineFromSpringResource(URL resource)static booleanisInitialized()static voidregisterEventRegistryEngine(EventRegistryEngine eventRegistryEngine)Registers the given event registry engine.static EngineInforetry(String resourceUrl)retries to initialize an event registry engine that previously failed.static voidsetInitialized(boolean isInitialized)static voidunregister(EventRegistryEngine eventRegistryEngine)Unregisters the given event registry engine.
-
-
-
Field Detail
-
NAME_DEFAULT
public static final String NAME_DEFAULT
- See Also:
- Constant Field Values
-
isInitialized
protected static boolean isInitialized
-
eventRegistryEngines
protected static Map<String,EventRegistryEngine> eventRegistryEngines
-
eventRegistryEngineInfosByName
protected static Map<String,EngineInfo> eventRegistryEngineInfosByName
-
eventRegistryEngineInfosByResourceUrl
protected static Map<String,EngineInfo> eventRegistryEngineInfosByResourceUrl
-
eventRegistryEngineInfos
protected static List<EngineInfo> eventRegistryEngineInfos
-
-
Method Detail
-
init
public static void init()
Initializes all event registry engines that can be found on the classpath for resourcesflowable.eventregistry.cfg.xmland for resourcesflowable-eventregistry-context.xml(Spring style configuration).
-
initEventRegistryEngineFromSpringResource
protected static void initEventRegistryEngineFromSpringResource(URL resource)
-
registerEventRegistryEngine
public static void registerEventRegistryEngine(EventRegistryEngine eventRegistryEngine)
Registers the given event registry engine. NoEngineInfowill be available for this event registry engine. An engine that is registered will be closed when thedestroy()is called.
-
unregister
public static void unregister(EventRegistryEngine eventRegistryEngine)
Unregisters the given event registry engine.
-
buildEventRegistryEngine
protected static EventRegistryEngine buildEventRegistryEngine(URL resource)
-
getEventRegistryEngineInfos
public static List<EngineInfo> getEventRegistryEngineInfos()
Get initialization results.
-
getEventRegistryEngineInfo
public static EngineInfo getEventRegistryEngineInfo(String eventRegistryEngineName)
Get initialization results. Only info will we available for event registry engines which were added in theinit(). NoEngineInfois available for engines which were registered programmatically.
-
getDefaultEventRegistryEngine
public static EventRegistryEngine getDefaultEventRegistryEngine()
-
getEventRegistryEngine
public static EventRegistryEngine getEventRegistryEngine(String eventRegistryEngineName)
Obtain an event registry engine by name.- Parameters:
eventRegistryEngineName- is the name of the event registry engine or null for the default event registry engine.
-
retry
public static EngineInfo retry(String resourceUrl)
retries to initialize an event registry engine that previously failed.
-
getEventRegistryEngines
public static Map<String,EventRegistryEngine> getEventRegistryEngines()
provides access to event registry engine to application clients in a managed server environment.
-
destroy
public static void destroy()
closes all event registry engines. This method should be called when the server shuts down.
-
isInitialized
public static boolean isInitialized()
-
setInitialized
public static void setInitialized(boolean isInitialized)
-
-