Package org.flowable.eventregistry.impl
Class EventRegistryEngines
java.lang.Object
org.flowable.eventregistry.impl.EventRegistryEngines
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static List<EngineInfo>protected static Map<String,EngineInfo> protected static Map<String,EngineInfo> protected static Map<String,EventRegistryEngine> protected static booleanstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static EventRegistryEnginebuildEventRegistryEngine(URL resource) static voiddestroy()closes all event registry engines.static EventRegistryEnginestatic EventRegistryEnginegetEventRegistryEngine(String eventRegistryEngineName) Obtain an event registry engine by name.static EngineInfogetEventRegistryEngineInfo(String eventRegistryEngineName) Get initialization results.static List<EngineInfo>Get initialization results.static Map<String,EventRegistryEngine> 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 booleanstatic voidregisterEventRegistryEngine(EventRegistryEngine eventRegistryEngine) Registers the given event registry engine.static EngineInforetries to initialize an event registry engine that previously failed.static voidsetInitialized(boolean isInitialized) static voidunregister(EventRegistryEngine eventRegistryEngine) Unregisters the given event registry engine.
-
Field Details
-
NAME_DEFAULT
- See Also:
-
isInitialized
protected static boolean isInitialized -
eventRegistryEngines
-
eventRegistryEngineInfosByName
-
eventRegistryEngineInfosByResourceUrl
-
eventRegistryEngineInfos
-
-
Constructor Details
-
EventRegistryEngines
public EventRegistryEngines()
-
-
Method Details
-
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
-
registerEventRegistryEngine
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
Unregisters the given event registry engine. -
buildEventRegistryEngine
-
getEventRegistryEngineInfos
Get initialization results. -
getEventRegistryEngineInfo
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
-
getEventRegistryEngine
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
retries to initialize an event registry engine that previously failed. -
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)
-