|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neeve.root.RootObject
com.neeve.ods.OdsObject
com.neeve.ods.StoreProviderDescriptor
public final class StoreProviderDescriptor
An ODS provider descriptor.
This class contains information to describe a ODS provider and contains methods to persist and load provider descriptors to/from X Platform configuration respositories.
Method Summary | |
---|---|
static StoreProviderDescriptor |
create(String name,
String className)
Create an odsty provider descriptor. |
void |
delete(IConfigRepository repo)
Delete a provider descriptor from a configuration repository. |
static boolean |
exists(IConfigRepository repo,
String name)
Checks if a provider descriptor is present in a configuration repository |
static boolean |
exists(String name)
Checks if a provider descriptor is present in the local configuration repository |
String |
getClassName()
Get the java class implementing providers of the type of this class. |
String |
getName()
Get the name of the provider that this descriptor describes. |
Properties |
getProperties()
Get the provider properties |
static StoreProviderDescriptor |
load(IConfigRepository repo,
String name)
Create a provider descriptor from a configuration repository. |
static StoreProviderDescriptor |
load(String name)
Create a provider descriptor from the local configuration repository. |
static Set<StoreProviderDescriptor> |
loadAll()
Create provider descriptors for all providers in the local configuration repository. |
static Set<StoreProviderDescriptor> |
loadAll(IConfigRepository repo)
Create provider descriptors for all providers in a configuration repository. |
void |
save(IConfigRepository repo)
Save a provider descriptor to a configuration repository. |
void |
setProperties(Properties props)
Set a set of provider properties. |
void |
setProperty(String name,
String val)
Set a provider property. |
String |
toString()
Returns a string representation of this object |
Methods inherited from class com.neeve.root.RootObject |
---|
getChecked, getThreaded, getTracer, setChecked, setTracer |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public final String getName()
public final String getClassName()
public final void setProperty(String name, String val)
public final void setProperties(Properties props)
public final Properties getProperties()
public final void save(IConfigRepository repo) throws OdsException
repo
- The configuration respository to save the descriptor to.
OdsException
- Thrown in case an error in encountered during the
saving of the object.This method saves a ODS provider descriptor to a configuration repository. The descriptor is stored in a format suitable for loading subsequently using any of the load methods offered by this class.
public final void delete(IConfigRepository repo) throws OdsException
repo
- The configuration respository to delete the descriptor from.
OdsException
- Thrown in case an error in encountered during the
deletion of the descriptor.This method deletes a provider descriptor from a configuration repository .
public final String toString()
toString
in class Object
public static boolean exists(IConfigRepository repo, String name)
repo
- The configuration respository to check in.name
- The name of the provider to check for.public static boolean exists(String name)
name
- The name of the provider to check for.public static StoreProviderDescriptor create(String name, String className)
name
- The name of the provider.className
- The name of the provider's main class.public static StoreProviderDescriptor load(IConfigRepository repo, String name) throws OdsException
repo
- The configuration respository to create the descriptor from.name
- The name of the provider.
OdsException
This method creates and initializes a provider descriptor from a configuration repository.
public static StoreProviderDescriptor load(String name) throws OdsException
name
- The name of the provider.
OdsException
This method creates and initializes a provider descriptor from the local configuration repository.
public static Set<StoreProviderDescriptor> loadAll(IConfigRepository repo) throws OdsException
repo
- The configuration respository to create the descriptors from.
This method creates and initializes provider descriptors for each of the providers present in a configuration repository.
OdsException
public static Set<StoreProviderDescriptor> loadAll() throws OdsException
This method creates and initializes provider descriptors for each of the providers present in the local configuration repository.
OdsException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |