|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectblackboard.persist.DbPersisterFactory<T>
public final class DbPersisterFactory<T extends Persister>
Helper factory class for implementing the "default" objects in persisters. This
requires less code to be written in the persister interface. Now, to create the
"default" factory, you do this:
public static final DbPersisterFactory
Though it is not an actual class in the persister 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 persister implementation. |
|
static
|
newInstance(java.lang.Class<T> cls,
java.lang.String key)
Create a new instance of the factory for accessing the persister 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 Persister> DbPersisterFactory<T> newInstance(java.lang.Class<T> cls)
T - The persister typecls - The class representing the persister type
public static final <T extends Persister> DbPersisterFactory<T> newInstance(java.lang.Class<T> cls,
java.lang.String key)
T - The persister typecls - The class representing the persister typekey - the key to use for finding the persister implementation
public T getInstance()
throws PersistenceException
PersistenceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||