|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdtaus.core.container.ModelFactory
Factory for the singleton.
| Constructor Summary | |
ModelFactory()
|
|
| Method Summary | |
static Model |
getModel()
Gets the singleton. |
static Model |
newModel()
Creates a new instance of the configured implementation. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ModelFactory()
| Method Detail |
public static Model getModel()
By default this class will instantiate a new instance and hold it in a static class variable as the singleton to return for other calls. This behaviour can be changed by setting a system property with key to the name of a class defining a method returning the singleton instance of the model.
ModelError - for unrecoverable model errors.newModel()public static Model newModel()
The implementation to be used can be controlled via a system property with key set to a class name to be loaded as the implementation.
This method should be used by implementors to retrieve a new instance.
ModelError - for unrecoverable model errors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||