public class StoreRegistry extends Object
Constructor and Description |
---|
StoreRegistry() |
Modifier and Type | Method and Description |
---|---|
StoreDescription |
findDescription(Class<?> aClass)
Find Description by class.
|
StoreDescription |
findDescription(String id)
Find a description for id.
|
IStoreFactory |
findStoreFactory(Class<?> aClass)
Find factory from class.
|
IStoreFactory |
findStoreFactory(String aClassName)
Find factory from class name.
|
String |
getEncoding() |
String |
getName() |
String |
getVersion() |
void |
registerDescription(StoreDescription desc)
Register a new description.
|
void |
setEncoding(String string)
Set the encoding to use when writing the configuration files.
|
void |
setName(String name) |
void |
setVersion(String version) |
StoreDescription |
unregisterDescription(StoreDescription desc)
Unregister a description.
|
public String getName()
public void setName(String name)
name
- The name to set.public String getVersion()
public void setVersion(String version)
version
- The version to set.public StoreDescription findDescription(String id)
id
- The class namepublic StoreDescription findDescription(Class<?> aClass)
aClass
- The classpublic IStoreFactory findStoreFactory(String aClassName)
aClassName
- The class namepublic IStoreFactory findStoreFactory(Class<?> aClass)
aClass
- The classpublic void registerDescription(StoreDescription desc)
desc
- New descriptionpublic StoreDescription unregisterDescription(StoreDescription desc)
desc
- The descriptionnull
if it was not registeredpublic String getEncoding()
public void setEncoding(String string)
string
- The encodingCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.