public class XMLFileBasedMetaStore extends java.lang.Object implements MetaStore
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_STORE_LOCATION
The default location for the XML files
|
Constructor and Description |
---|
XMLFileBasedMetaStore() |
Modifier and Type | Method and Description |
---|---|
void |
createStore(java.lang.String storeName)
Create a named store
|
java.lang.Object |
getEntry(java.lang.String storeName,
java.lang.String name,
java.lang.Class<?> clazz)
Get a named entry from the store
|
java.util.Set<java.lang.String> |
listMetaStoreEntries(java.lang.String storeName)
Get a list of all entries in a named store
|
java.util.Set<java.lang.String> |
listMetaStoreEntries(java.lang.String storeName,
java.lang.String prefix)
Get a list of all named entries starting with the given prefix
|
java.util.Set<java.lang.String> |
listMetaStores()
Get a list of all named meta stores
|
void |
storeEntry(java.lang.String storeName,
java.lang.String name,
java.lang.Object toStore)
Store a named entry
|
public static final java.lang.String DEFAULT_STORE_LOCATION
public java.util.Set<java.lang.String> listMetaStores() throws java.io.IOException
MetaStore
listMetaStores
in interface MetaStore
java.io.IOException
- if a problem occurspublic java.util.Set<java.lang.String> listMetaStoreEntries(java.lang.String storeName) throws java.io.IOException
MetaStore
listMetaStoreEntries
in interface MetaStore
storeName
- the name of the store to get entries forjava.io.IOException
- if a problem occurspublic java.util.Set<java.lang.String> listMetaStoreEntries(java.lang.String storeName, java.lang.String prefix) throws java.io.IOException
MetaStore
listMetaStoreEntries
in interface MetaStore
storeName
- the name of the store to get entries forprefix
- the prefix with which to search for entriesjava.io.IOException
- if a problem occurspublic java.lang.Object getEntry(java.lang.String storeName, java.lang.String name, java.lang.Class<?> clazz) throws java.io.IOException
MetaStore
getEntry
in interface MetaStore
storeName
- the name of the store to usename
- the full name of the entry to retrieveclazz
- the expected class of the entry when deserializedjava.io.IOException
- if the deserialized entry does not match the expected
classpublic void createStore(java.lang.String storeName) throws java.io.IOException
MetaStore
createStore
in interface MetaStore
storeName
- the name of the store to createjava.io.IOException
- if a problem occurspublic void storeEntry(java.lang.String storeName, java.lang.String name, java.lang.Object toStore) throws java.io.IOException
MetaStore
storeEntry
in interface MetaStore
storeName
- the name of the store to usename
- the full name of the entry to storetoStore
- a beans compliant object to storejava.io.IOException
- if a problem occurs