|
|||||||||
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.StoreObjectFactoryDescriptor
public final class StoreObjectFactoryDescriptor
The ODS object factory descriptor.
This class contains information to describe an ODS object factory. It also contains methods to persist and load object factory descriptors to/from X Platform configuration respositories.
Method Summary | |
---|---|
static StoreObjectFactoryDescriptor |
create(String name,
short id,
String className)
Create an object factory descriptor. |
void |
delete(IConfigRepository repo)
Delete an object factory descriptor from a configuration repository. |
static boolean |
exists(IConfigRepository repo,
String name)
Checks if an object factory descriptor is present in a configuration repository. |
static boolean |
exists(String name)
Checks if an object factory descriptor is present in the local configuration repository |
String |
getClassName()
Get the java class of the object factory that this descriptor describes. |
short |
getId()
Get the id of the object factory that this descriptor describes. |
String |
getName()
Get the name of the object factory that this descriptor describes. |
static StoreObjectFactoryDescriptor |
load(IConfigRepository repo,
String name)
Create an object factory descriptor from a configuration repository. |
static StoreObjectFactoryDescriptor |
load(String name)
Create an object factory descriptor from the local configuration repository. |
static Map<Short,StoreObjectFactoryDescriptor> |
loadAll()
Create object factory descriptors for all factories in the local configuration repository. |
static Map<Short,StoreObjectFactoryDescriptor> |
loadAll(IConfigRepository repo)
Create object factory descriptors for all factories in a configuration repository. |
void |
save()
Save an object factory descriptor to the defalt configuration repository. |
void |
save(IConfigRepository repo)
Save an object factory descriptor to a configuration repository. |
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 short getId()
public final String getClassName()
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 an object factory 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 save() throws OdsException
OdsException
- Thrown in case an error in encountered during the
saving of the object.This method saves an object factory descriptor to the default 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 from.
OdsException
- Thrown in case an error in encountered during the
deletion of the descriptor.This method deletes an object factory 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 factory to check for.public static boolean exists(String name)
name
- The name of the object factory to check for.public static StoreObjectFactoryDescriptor create(String name, short id, String className)
name
- The name of the factory.id
- The factory's unique identifier.className
- The name of the factory's class.public static StoreObjectFactoryDescriptor load(IConfigRepository repo, String name) throws OdsException
repo
- The configuration respository to create the descriptor from.name
- The name of the factory.
OdsException
This method creates and creates an object factory descriptor from a configuration repository.
public static StoreObjectFactoryDescriptor load(String name) throws OdsException
name
- The name of the factory.
OdsException
This method creates and initializes an object factory descriptor from the local configuration repository.
public static Map<Short,StoreObjectFactoryDescriptor> loadAll(IConfigRepository repo) throws OdsException
repo
- The configuration respository to load the factories from.
This method creates and initializes object factory descriptors for each of the providers present in the configuration repository.
OdsException
public static Map<Short,StoreObjectFactoryDescriptor> loadAll() throws OdsException
This method creates and initializes object factory descriptors for each of the factories present in the local configuration repository.
OdsException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |