| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.archiviststoolkit.mydomain.DomainAccessObjectFactory
public final class DomainAccessObjectFactory
Singleton factory which generates instances of DomainAccess objects. TODO: add static helpers which do a getInstance().add type pattern todo add support for classes that extend DomainAccessObjectImpl so that all dao requests can go through the factory
| Method Summary | |
|---|---|
|  DomainAccessObject | getDomainAccessObject(java.lang.Class clazz)Looks up the class in the cache and pulls out the appropriate DAO. | 
| static DomainAccessObjectFactory | getInstance()Standard factory pattern get instance method. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static DomainAccessObjectFactory getInstance()
                                             throws PersistenceException
PersistenceException - a fatal persistence exception has occurredpublic DomainAccessObject getDomainAccessObject(java.lang.Class clazz)
clazz - to return a Domain access object for
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||