org.hibernate.reflection.java
Class JavaXFactory

java.lang.Object
  extended by org.hibernate.reflection.java.JavaXFactory
All Implemented Interfaces:
ReflectionManager

public class JavaXFactory
extends Object
implements ReflectionManager

The factory for all the objects in this package.

Author:
Paolo Perrotta, Davide Marchignoli

Field Summary
 
Fields inherited from interface org.hibernate.reflection.ReflectionManager
INSTANCE
 
Constructor Summary
JavaXFactory()
           
 
Method Summary
 XClass classForName(String name, Class caller)
           
 boolean equals(XClass class1, Class class2)
           
 XPackage packageForName(String packageName)
           
 TypeEnvironment toApproximatingEnvironment(TypeEnvironment context)
           
 Class toClass(XClass xClazz)
           
 XClass toXClass(Class clazz)
           
 org.hibernate.reflection.java.JavaXType toXType(TypeEnvironment context, Type propType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaXFactory

public JavaXFactory()
Method Detail

toXClass

public XClass toXClass(Class clazz)
Specified by:
toXClass in interface ReflectionManager

toClass

public Class toClass(XClass xClazz)
Specified by:
toClass in interface ReflectionManager

classForName

public XClass classForName(String name,
                           Class caller)
                    throws ClassNotFoundException
Specified by:
classForName in interface ReflectionManager
Throws:
ClassNotFoundException

packageForName

public XPackage packageForName(String packageName)
                        throws ClassNotFoundException
Specified by:
packageForName in interface ReflectionManager
Throws:
ClassNotFoundException

toXType

public org.hibernate.reflection.java.JavaXType toXType(TypeEnvironment context,
                                                       Type propType)

equals

public boolean equals(XClass class1,
                      Class class2)
Specified by:
equals in interface ReflectionManager

toApproximatingEnvironment

public TypeEnvironment toApproximatingEnvironment(TypeEnvironment context)