org.hibernate.annotations.common.reflection.java
Class JavaReflectionManager
java.lang.Object
org.hibernate.annotations.common.reflection.java.JavaReflectionManager
- All Implemented Interfaces:
- MetadataProviderInjector, ReflectionManager
public class JavaReflectionManager
- extends Object
- implements ReflectionManager, MetadataProviderInjector
The factory for all the objects in this package.
- Author:
- Paolo Perrotta, Davide Marchignoli, Emmanuel Bernard
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaReflectionManager
public JavaReflectionManager()
getMetadataProvider
public MetadataProvider getMetadataProvider()
- Specified by:
getMetadataProvider
in interface MetadataProviderInjector
setMetadataProvider
public void setMetadataProvider(MetadataProvider metadataProvider)
- Description copied from interface:
MetadataProviderInjector
- Defines the metadata provider for a given Reflection Manager
- Specified by:
setMetadataProvider
in interface MetadataProviderInjector
toXClass
public XClass toXClass(Class clazz)
- Specified by:
toXClass
in interface ReflectionManager
toClass
public Class toClass(XClass xClazz)
- Specified by:
toClass
in interface ReflectionManager
toMethod
public Method toMethod(XMethod xMethod)
- Specified by:
toMethod
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.annotations.common.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)
buildAnnotationReader
public AnnotationReader buildAnnotationReader(AnnotatedElement annotatedElement)
- Specified by:
buildAnnotationReader
in interface ReflectionManager
getDefaults
public Map getDefaults()
- Specified by:
getDefaults
in interface ReflectionManager
Copyright © 2005-2011 Hibernate.org. All Rights Reserved.