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 MetadataProviderInjector
public void setMetadataProvider(MetadataProvider metadataProvider)
MetadataProviderInjector
setMetadataProvider
in interface MetadataProviderInjector
public void injectClassLoaderDelegate(ClassLoaderDelegate delegate)
ReflectionManager
injectClassLoaderDelegate
in interface ReflectionManager
delegate
- The ClassLoaderDelegate to usepublic ClassLoaderDelegate getClassLoaderDelegate()
ReflectionManager
getClassLoaderDelegate
in interface ReflectionManager
public XClass toXClass(Class clazz)
toXClass
in interface ReflectionManager
public Class toClass(XClass xClazz)
toClass
in interface ReflectionManager
public Method toMethod(XMethod xMethod)
toMethod
in interface ReflectionManager
@Deprecated public XClass classForName(String name, Class caller) throws ClassNotFoundException
ReflectionManager
classForName
in interface ReflectionManager
ClassNotFoundException
public XClass classForName(String name) throws ClassLoadingException
ReflectionManager
ReflectionManager.getClassLoaderDelegate()
) to resolve the Class referenceclassForName
in interface ReflectionManager
name
- 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 ReflectionManager
ClassNotFoundException
public org.hibernate.annotations.common.reflection.java.JavaXType toXType(TypeEnvironment context, Type propType)
public boolean equals(XClass class1, Class class2)
equals
in interface ReflectionManager
public TypeEnvironment toApproximatingEnvironment(TypeEnvironment context)
public AnnotationReader buildAnnotationReader(AnnotatedElement annotatedElement)
buildAnnotationReader
in interface ReflectionManager
public Map getDefaults()
getDefaults
in interface ReflectionManager
Copyright © 2021 JBoss by Red Hat. All rights reserved.