public class EventTypeStoreFactory
extends java.lang.Object
Constructor and Description |
---|
EventTypeStoreFactory() |
Modifier and Type | Method and Description |
---|---|
static EDAEventTypeStore |
createEventTypeStore(com.softwareag.eda.configuration.beans.EventTypeStoreConfigType configuration)
Returns the
EDAEventTypeStore instance which location is configured into the
FileEventTypeStoreConfigType object. |
static EDAEventTypeStore |
createEventTypeStore(java.io.InputStream configuration)
Returns the
EDAEventTypeStore instance which location is configured into the configuration InputStream. |
static EDAEventTypeStore |
createEventTypeStore(java.lang.String location)
Returns the
EDAEventTypeStore instance with root directory denoted by the specified location
parameter. |
public static EDAEventTypeStore createEventTypeStore(java.io.InputStream configuration) throws EDAEventTypeStoreException
EDAEventTypeStore
instance which location is configured into the configuration InputStream.
Input stream is a XML file which contains specific tags. The location is where user specifies the location of the
Event Type Store
Example of a valid XML:
<?xml version="1.0" encoding="UTF-8"?> <FileEventTypeStoreConfig xmlns="http://namespaces.softwareag.com/EDA/Configuration/FileEventTypeStoreConfigType"> <Location>../common/EventTypeStore/</Location> </FileEventTypeStoreConfig>
configuration
- - InputStream containing the needed XML tagsEDAEventTypeStoreException
public static EDAEventTypeStore createEventTypeStore(com.softwareag.eda.configuration.beans.EventTypeStoreConfigType configuration) throws EDAEventTypeStoreException
EDAEventTypeStore
instance which location is configured into the
FileEventTypeStoreConfigType
object.
Example code:
FileEventTypeStoreConfigType etsConf = new FileEventTypeStoreConfigType(); etsConf.setLocation("../common/EventTypeStore/"); EDAEventTypeStore ets = EventTypeStoreFactory.createEventTypeStore(etsConf);
configuration
- EDAEventTypeStoreException
public static EDAEventTypeStore createEventTypeStore(java.lang.String location) throws EDAEventTypeStoreException
EDAEventTypeStore
instance with root directory denoted by the specified location
parameter.
Example code:
String uri = "../common/EventTypeStore/"; EDAEventTypeStore ets = EventTypeStoreFactory.createEventTypeStore(uri);
location
- path to the root directory of a file based ETSEDAEventTypeStoreException