org.nakedobjects.plugins.hibernate.objectstore.persistence.objectfactory
Class HibernateObjectFactory

java.lang.Object
  extended by org.nakedobjects.runtime.persistence.objectfactory.ObjectFactoryAbstract
      extended by org.nakedobjects.plugins.hibernate.objectstore.persistence.objectfactory.HibernateObjectFactory
All Implemented Interfaces:
Component, SessionScopedComponent, ObjectFactory

public class HibernateObjectFactory
extends ObjectFactoryAbstract


Nested Class Summary
 
Nested classes/interfaces inherited from class org.nakedobjects.runtime.persistence.objectfactory.ObjectFactoryAbstract
ObjectFactoryAbstract.Mode
 
Constructor Summary
HibernateObjectFactory()
           
 
Method Summary
<T> T
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

HibernateObjectFactory

public HibernateObjectFactory()
Method Detail

doInstantiate

public <T> T doInstantiate(java.lang.Class<T> cls)
                throws ObjectInstantiationException
Specified by:
doInstantiate in class ObjectFactoryAbstract
Throws:
ObjectInstantiationException

getClass

public java.lang.Class<?> getClass(java.lang.Class<?> cls)
Converts Hibernate's 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.



Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.