|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.runtime.persistence.objectfactory.ObjectFactoryAbstract
org.nakedobjects.plugins.hibernate.objectstore.persistence.objectfactory.HibernateObjectFactory
public class HibernateObjectFactory
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.nakedobjects.runtime.persistence.objectfactory.ObjectFactoryAbstract |
|---|
ObjectFactoryAbstract.Mode |
| Constructor Summary | |
|---|---|
HibernateObjectFactory()
|
|
| Method Summary | ||
|---|---|---|
|
doInstantiate(java.lang.Class<T> cls)
|
|
java.lang.Class<?> |
getClass(java.lang.Class<?> cls)
Converts Hibernate's PersistentCollection classes to the correct collection type ( List,
Set or Map ). |
|
| Methods inherited from class org.nakedobjects.runtime.persistence.objectfactory.ObjectFactoryAbstract |
|---|
close, getPersistenceSession, getServicesInjector, getSpecificationLoader, instantiate, open |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HibernateObjectFactory()
| Method Detail |
|---|
public <T> T doInstantiate(java.lang.Class<T> cls)
throws ObjectInstantiationException
doInstantiate in class ObjectFactoryAbstractObjectInstantiationExceptionpublic java.lang.Class<?> getClass(java.lang.Class<?> cls)
PersistentCollection classes to the correct collection type ( List,
Set or Map ).
TODO: this approach prevents programmers from subclassing collection classes. We will therefore need to revisit this area when we get around to adding actions to collection classes.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||