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 boolean
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static EventRegistryEngine
buildEventRegistryEngine
(URL resource) static void
destroy()
closes all event registry engines.static EventRegistryEngine
static EventRegistryEngine
getEventRegistryEngine
(String eventRegistryEngineName) Obtain an event registry engine by name.static EngineInfo
getEventRegistryEngineInfo
(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 void
init()
Initializes all event registry engines that can be found on the classpath for resourcesflowable.eventregistry.cfg.xml
and for resourcesflowable-eventregistry-context.xml
(Spring style configuration).protected static void
initEventRegistryEngineFromSpringResource
(URL resource) static boolean
static void
registerEventRegistryEngine
(EventRegistryEngine eventRegistryEngine) Registers the given event registry engine.static EngineInfo
retries to initialize an event registry engine that previously failed.static void
setInitialized
(boolean isInitialized) static void
unregister
(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.xml
and for resourcesflowable-eventregistry-context.xml
(Spring style configuration). -
initEventRegistryEngineFromSpringResource
-
registerEventRegistryEngine
Registers the given event registry engine. NoEngineInfo
will 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()
. NoEngineInfo
is 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)
-