public class JavaReflectionManager extends Object implements ReflectionManager, MetadataProviderInjector
| Constructor and Description |
|---|
JavaReflectionManager() |
| Modifier and Type | Method and Description |
|---|---|
AnnotationReader |
buildAnnotationReader(AnnotatedElement annotatedElement) |
XClass |
classForName(String name)
Given the name of a Class, retrieve the XClass representation.
|
XClass |
classForName(String name,
Class caller)
Deprecated.
|
boolean |
equals(XClass class1,
Class class2) |
ClassLoaderDelegate |
getClassLoaderDelegate()
Access to the ClassLoaderDelegate currently associated with this ReflectionManager
|
Map |
getDefaults() |
MetadataProvider |
getMetadataProvider() |
void |
injectClassLoaderDelegate(ClassLoaderDelegate delegate)
Allows injection of a ClassLoaderDelegate into the ReflectionManager
|
XPackage |
packageForName(String packageName) |
void |
setMetadataProvider(MetadataProvider metadataProvider)
Defines the metadata provider for a given Reflection Manager
|
TypeEnvironment |
toApproximatingEnvironment(TypeEnvironment context) |
Class |
toClass(XClass xClazz) |
Method |
toMethod(XMethod xMethod) |
XClass |
toXClass(Class clazz) |
org.hibernate.annotations.common.reflection.java.JavaXType |
toXType(TypeEnvironment context,
Type propType) |
public MetadataProvider getMetadataProvider()
getMetadataProvider in interface MetadataProviderInjectorpublic void setMetadataProvider(MetadataProvider metadataProvider)
MetadataProviderInjectorsetMetadataProvider in interface MetadataProviderInjectorpublic void injectClassLoaderDelegate(ClassLoaderDelegate delegate)
ReflectionManagerinjectClassLoaderDelegate in interface ReflectionManagerdelegate - The ClassLoaderDelegate to usepublic ClassLoaderDelegate getClassLoaderDelegate()
ReflectionManagergetClassLoaderDelegate in interface ReflectionManagerpublic XClass toXClass(Class clazz)
toXClass in interface ReflectionManagerpublic Class toClass(XClass xClazz)
toClass in interface ReflectionManagerpublic Method toMethod(XMethod xMethod)
toMethod in interface ReflectionManager@Deprecated public XClass classForName(String name, Class caller) throws ClassNotFoundException
ReflectionManagerclassForName in interface ReflectionManagerClassNotFoundExceptionpublic XClass classForName(String name) throws ClassLoadingException
ReflectionManagerReflectionManager.getClassLoaderDelegate()) to resolve the Class referenceclassForName in interface ReflectionManagername - The name of the Class to load (as an XClass)ClassLoadingException - Indicates a problem resolving the Class; see ClassLoaderDelegate.classForName(java.lang.String)public XPackage packageForName(String packageName) throws ClassNotFoundException
packageForName in interface ReflectionManagerClassNotFoundExceptionpublic org.hibernate.annotations.common.reflection.java.JavaXType toXType(TypeEnvironment context, Type propType)
public boolean equals(XClass class1, Class class2)
equals in interface ReflectionManagerpublic TypeEnvironment toApproximatingEnvironment(TypeEnvironment context)
public AnnotationReader buildAnnotationReader(AnnotatedElement annotatedElement)
buildAnnotationReader in interface ReflectionManagerpublic Map getDefaults()
getDefaults in interface ReflectionManagerCopyright © 2018 JBoss by Red Hat. All rights reserved.