public final class NERVSingleton
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
destroyAssets()
Destroys all currently loaded NERV assets and related NERV objects.
|
org.apache.camel.Processor |
getBodyExtractor() |
ComponentResolver |
getComponentResolver() |
EventConsumer |
getEventConsumer()
Returns a fully initialized
EventConsumer instance which can subscribe user specified Camel Processor implementations to the Event Bus. |
EventEmitter |
getEventEmitter()
Returns a fully initialized
EventEmitter instance which can emit EDA events wrapped in Camel Message objects to the Event Bus. |
com.softwareag.eda.store.api.EDAEventTypeStore |
getEventTypeStore()
Returns an
EDAEventTypeStore instance which is configured as specified in the NERV Configuration properties. |
static NERVSingleton |
getInstance()
Returns the
NERVSingleton instance |
JmsSupport |
getJmsSupport() |
MessageCreator |
getMessageCreator()
Returns a fully initialized
MessageCreator instance which can construct Camel Message objects out of user specified EDA events in various formats. |
void |
loadAssets(java.util.Properties props)
Performs NERV initialization according to specified configuration properties.
|
public static NERVSingleton getInstance()
NERVSingleton
instanceNERVSingleton
instancepublic void loadAssets(java.util.Properties props) throws java.lang.Exception
com.softwareag.eda.nerv.default.jms.provider
- defines the default JMS provider which is used to
connect to the Event Buscom.softwareag.eda.nerv.eventtypestore.location
- contains the path to the Event Type Store
location.com.softwareag.eda.nerv.configbundles.location
- contains the path to a directory containing
NERV configuration bundlescom.softwareag.eda.nerv.dead.letter.channel.ur
- specifies the location where NERV sends any
undelivered events after the maximum number of redelivery attempts has been reached.props
- A NERV configuration properties objectjava.lang.Exception
- If an error occurs during the process.public void destroyAssets() throws java.lang.Exception
java.lang.Exception
public EventEmitter getEventEmitter() throws java.lang.Exception
EventEmitter
instance which can emit EDA events wrapped in Camel Message objects to the Event Bus.EventEmitter
java.lang.Exception
public EventConsumer getEventConsumer() throws java.lang.Exception
EventConsumer
instance which can subscribe user specified Camel Processor implementations to the Event Bus.EventConsumer
java.lang.Exception
public MessageCreator getMessageCreator() throws java.lang.Exception
MessageCreator
instance which can construct Camel Message objects out of user specified EDA events in various formats.MessageCreator
java.lang.Exception
public com.softwareag.eda.store.api.EDAEventTypeStore getEventTypeStore() throws java.lang.Exception
EDAEventTypeStore
instance which is configured as specified in the NERV Configuration properties.java.lang.Exception
- when the com.softwareag.eda.nerv.eventtypestore.location
property is configured properlypublic ComponentResolver getComponentResolver() throws java.lang.Exception
java.lang.Exception
public JmsSupport getJmsSupport() throws java.lang.Exception
java.lang.Exception
public org.apache.camel.Processor getBodyExtractor() throws java.lang.Exception
java.lang.Exception