org.nakedobjects.plugins.hibernate.objectstore.specloader.classsubstitutor
Class HibernateClassSubstitutor

java.lang.Object
  extended by org.nakedobjects.metamodel.specloader.classsubstitutor.ClassSubstitutorAbstract
      extended by org.nakedobjects.plugins.hibernate.objectstore.specloader.classsubstitutor.HibernateClassSubstitutor
All Implemented Interfaces:
ApplicationScopedComponent, Component, Injectable, ClassSubstitutor

public class HibernateClassSubstitutor
extends ClassSubstitutorAbstract


Constructor Summary
HibernateClassSubstitutor()
           
 
Method Summary
 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.metamodel.specloader.classsubstitutor.ClassSubstitutorAbstract
getIgnoredClasses, ignore, init, injectInto, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateClassSubstitutor

public HibernateClassSubstitutor()
Method Detail

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.

Specified by:
getClass in interface ClassSubstitutor
Overrides:
getClass in class ClassSubstitutorAbstract


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