|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sri.emo.wizard.defaults.DefaultWizardRepository
public class DefaultWizardRepository
Default instance of wizard repository. Stores factories and creates a new instance of each wizard when requested. This implementation is threadsafe. This is used for testing only.
| Constructor Summary | |
|---|---|
DefaultWizardRepository()
Default Constructor |
|
| Method Summary | |
|---|---|
void |
addFactory(Serializable id,
WizardFactory factory)
Adds a factory to the repository. |
boolean |
equals(Object parm1)
|
Wizard |
find(Serializable id)
Retrieve a wizard based on id. |
int |
hashCode()
|
List |
list()
Retrieve instances of all wizards stored in the repository. |
void |
removeWizard(Serializable id)
Removes a particular wizard from the repository. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultWizardRepository()
| Method Detail |
|---|
public Wizard find(Serializable id)
throws WizardException
WizardRepository
find in interface WizardRepositoryid - the identification field.
WizardException - upon repository query or wizard construction
error.
public List list()
throws WizardException
WizardRepository
list in interface WizardRepositoryWizardException - upon listing or construction error.
public void addFactory(Serializable id,
WizardFactory factory)
WizardRepository
addFactory in interface WizardRepositoryid - the unique id of the wizard that we're going to hold.factory - the factory to use for building new instances of
Wizardspublic void removeWizard(Serializable id)
removeWizard in interface WizardRepositoryid - the id of the wizard.public boolean equals(Object parm1)
equals in class Objectpublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||