|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.store.ClassesAutoStarter
public class ClassesAutoStarter
An auto-starter mechanism that uses a defined list of classes to be loaded at start.
| Field Summary | |
|---|---|
static java.lang.String |
CLASSES_STARTER
Classes are user defined classes to be loaded by the auto starter |
protected java.lang.String |
classNames
|
protected static Localiser |
LOCALISER
|
protected java.lang.String |
mode
|
| Fields inherited from interface org.jpox.store.AutoStartMechanism |
|---|
MODE_CHECKED, MODE_IGNORED, MODE_QUIET, NONE |
| Constructor Summary | |
|---|---|
ClassesAutoStarter(java.lang.String classNames)
Constructor, taking the names of the classes to use. |
|
| Method Summary | |
|---|---|
void |
addClass(StoreData data)
Method to add a class to the starter. |
void |
close()
Closes a transaction for writing (add/delete) classes to the auto start mechanism |
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 |
getMode()
Accessor for the mode of operation |
java.lang.String |
getStorageDescription()
Method to give a descriptive name for the starter process. |
boolean |
isOpen()
Whether it's open for writing (add/delete) classes to the auto start mechanism |
void |
open()
Starts a transaction for writting (add/delete) classes to the auto start mechanism |
void |
setMode(java.lang.String mode)
Mutator for the mode of operation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CLASSES_STARTER
protected static final Localiser LOCALISER
protected java.lang.String mode
protected java.lang.String classNames
| Constructor Detail |
|---|
public ClassesAutoStarter(java.lang.String classNames)
classNames - Names of the classes to start| Method Detail |
|---|
public java.lang.String getMode()
getMode in interface AutoStartMechanismpublic void setMode(java.lang.String mode)
setMode in interface AutoStartMechanismmode - The mode of operation
public java.util.Collection getAllClassData()
throws DatastoreInitialisationException
getAllClassData in interface AutoStartMechanismDatastoreInitialisationExceptionpublic void open()
open in interface AutoStartMechanismpublic boolean isOpen()
isOpen in interface AutoStartMechanismpublic void close()
close in interface AutoStartMechanismpublic void addClass(StoreData data)
addClass in interface AutoStartMechanismdata - The store data to addpublic void deleteClass(java.lang.String className)
deleteClass in interface AutoStartMechanismclassName - The name of the class to remove.public void deleteAllClasses()
deleteAllClasses in interface AutoStartMechanismpublic java.lang.String getStorageDescription()
getStorageDescription in interface AutoStartMechanism
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||