|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectblackboard.persist.DbLoaderFactory<T>
public class DbLoaderFactory<T extends Loader>
Helper factory class for implementing the "default" objects in loaders. This
requires less code to be written in the loader interface. Now, to create the
"default" factory, you do this:
public static final DbPersisterFactory
Though it is not an actual class in the loader interface, the client code will
interact with it in the same way all current code does.
| Method Summary | ||
|---|---|---|
T |
getInstance()
|
|
static
|
newInstance(java.lang.Class<T> cls)
Create a new instance of the factory for accessing the loader implementation. |
|
static
|
newInstance(java.lang.Class<T> cls,
java.lang.String key)
Create a new instance of the factory for accessing the loader implementation. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static final <T extends Loader> DbLoaderFactory<T> newInstance(java.lang.Class<T> cls)
T - The Loader typecls - The class representing the loader type
public static final <T extends Loader> DbLoaderFactory<T> newInstance(java.lang.Class<T> cls,
java.lang.String key)
T - The Loader typecls - The class representing the loader typekey - the key to use for finding the loader implementation
public T getInstance()
throws PersistenceException
PersistenceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||