|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.autostart.AbstractAutoStartMechanism
org.datanucleus.store.autostart.MetaDataAutoStarter
public class MetaDataAutoStarter
An auto-starter mechanism that uses a defined list of metadata files to be loaded at startup.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.datanucleus.store.autostart.AutoStartMechanism |
|---|
AutoStartMechanism.Mode |
| Field Summary | |
|---|---|
protected java.util.Collection |
classes
|
protected ClassLoaderResolver |
clr
|
protected java.lang.String |
metaDataFiles
Names of the metadata files to start with (comma-separated). |
protected StoreManager |
storeMgr
|
| Fields inherited from class org.datanucleus.store.autostart.AbstractAutoStartMechanism |
|---|
LOCALISER, mode, open |
| Constructor Summary | |
|---|---|
MetaDataAutoStarter(StoreManager storeMgr,
ClassLoaderResolver clr)
Constructor, taking the names of the metadata to use. |
|
| Method Summary | |
|---|---|
void |
addClass(StoreData data)
Method to add a class to the starter. |
void |
deleteAllClasses()
Method to remove all classes from the starter. |
void |
deleteClass(java.lang.String className)
Method to remove a class from the starter. |
java.util.Collection |
getAllClassData()
Accessor for all auto start data for this starter. |
java.lang.String |
getStorageDescription()
Method to give a descriptive name for the starter process. |
| Methods inherited from class org.datanucleus.store.autostart.AbstractAutoStartMechanism |
|---|
close, getMode, isOpen, open, setMode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String metaDataFiles
protected StoreManager storeMgr
protected ClassLoaderResolver clr
protected java.util.Collection classes
| Constructor Detail |
|---|
public MetaDataAutoStarter(StoreManager storeMgr,
ClassLoaderResolver clr)
storeMgr - The StoreManager managing the store that we are auto-starting.clr - The ClassLoaderResolver| Method Detail |
|---|
public java.util.Collection getAllClassData()
throws DatastoreInitialisationException
DatastoreInitialisationExceptionpublic void addClass(StoreData data)
data - The store data to addpublic void deleteClass(java.lang.String className)
className - The name of the class to remove.public void deleteAllClasses()
public java.lang.String getStorageDescription()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||