public abstract class EventRegistryEngines extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static List<EngineInfo> |
eventRegistryEngineInfos |
protected static Map<String,EngineInfo> |
eventRegistryEngineInfosByName |
protected static Map<String,EngineInfo> |
eventRegistryEngineInfosByResourceUrl |
protected static Map<String,EventRegistryEngine> |
eventRegistryEngines |
protected static boolean |
isInitialized |
static String |
NAME_DEFAULT |
| Constructor and Description |
|---|
EventRegistryEngines() |
| Modifier and Type | Method and Description |
|---|---|
protected static EventRegistryEngine |
buildEventRegistryEngine(URL resource) |
static void |
destroy()
closes all event registry engines.
|
static EventRegistryEngine |
getDefaultEventRegistryEngine() |
static EventRegistryEngine |
getEventRegistryEngine(String eventRegistryEngineName)
Obtain an event registry engine by name.
|
static EngineInfo |
getEventRegistryEngineInfo(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 void |
init()
Initializes all event registry engines that can be found on the classpath for resources
flowable.eventregistry.cfg.xml
and for resources flowable-eventregistry-context.xml (Spring style configuration). |
protected static void |
initEventRegistryEngineFromSpringResource(URL resource) |
static boolean |
isInitialized() |
static void |
registerEventRegistryEngine(EventRegistryEngine eventRegistryEngine)
Registers the given event registry engine.
|
static EngineInfo |
retry(String resourceUrl)
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.
|
public static final String NAME_DEFAULT
protected static boolean isInitialized
protected static Map<String,EventRegistryEngine> eventRegistryEngines
protected static Map<String,EngineInfo> eventRegistryEngineInfosByName
protected static Map<String,EngineInfo> eventRegistryEngineInfosByResourceUrl
protected static List<EngineInfo> eventRegistryEngineInfos
public static void init()
flowable.eventregistry.cfg.xml
and for resources flowable-eventregistry-context.xml (Spring style configuration).protected static void initEventRegistryEngineFromSpringResource(URL resource)
public static void registerEventRegistryEngine(EventRegistryEngine eventRegistryEngine)
EngineInfo will be available for this event registry engine. An engine that is registered will be closed when the destroy() is called.public static void unregister(EventRegistryEngine eventRegistryEngine)
protected static EventRegistryEngine buildEventRegistryEngine(URL resource)
public static List<EngineInfo> getEventRegistryEngineInfos()
public static EngineInfo getEventRegistryEngineInfo(String eventRegistryEngineName)
init(). No EngineInfo is available for engines which were registered
programmatically.public static EventRegistryEngine getDefaultEventRegistryEngine()
public static EventRegistryEngine getEventRegistryEngine(String eventRegistryEngineName)
eventRegistryEngineName - is the name of the event registry engine or null for the default event registry engine.public static EngineInfo retry(String resourceUrl)
public static Map<String,EventRegistryEngine> getEventRegistryEngines()
public static void destroy()
public static boolean isInitialized()
public static void setInitialized(boolean isInitialized)
Copyright © 2021 Flowable. All rights reserved.