public abstract class ReflectionTools extends Object
Constructor and Description |
---|
ReflectionTools() |
Modifier and Type | Method and Description |
---|---|
static Getter |
getGetter(Class cls,
PropertyData propertyData,
ServiceRegistry serviceRegistry) |
static Getter |
getGetter(Class cls,
String propertyName,
String accessorType,
ServiceRegistry serviceRegistry) |
static org.hibernate.annotations.common.reflection.XProperty |
getProperty(org.hibernate.annotations.common.reflection.XClass clazz,
String propertyName) |
static org.hibernate.annotations.common.reflection.XProperty |
getProperty(org.hibernate.annotations.common.reflection.XClass clazz,
String propertyName,
String accessType) |
static Setter |
getSetter(Class cls,
PropertyData propertyData,
ServiceRegistry serviceRegistry) |
static Setter |
getSetter(Class cls,
String propertyName,
String accessorType,
ServiceRegistry serviceRegistry) |
static <T> Class<T> |
loadClass(String name,
ClassLoaderService classLoaderService)
Locate class with a given name.
|
public static Getter getGetter(Class cls, PropertyData propertyData, ServiceRegistry serviceRegistry)
public static Getter getGetter(Class cls, String propertyName, String accessorType, ServiceRegistry serviceRegistry)
public static Setter getSetter(Class cls, PropertyData propertyData, ServiceRegistry serviceRegistry)
public static Setter getSetter(Class cls, String propertyName, String accessorType, ServiceRegistry serviceRegistry)
public static org.hibernate.annotations.common.reflection.XProperty getProperty(org.hibernate.annotations.common.reflection.XClass clazz, String propertyName)
clazz
- Source class.propertyName
- Property name.null
if none with expected name has been found.public static org.hibernate.annotations.common.reflection.XProperty getProperty(org.hibernate.annotations.common.reflection.XClass clazz, String propertyName, String accessType)
clazz
- Source class.propertyName
- Property name.accessType
- Expected access type. Legal values are field and property.null
if none with expected name and access type has been found.public static <T> Class<T> loadClass(String name, ClassLoaderService classLoaderService) throws ClassLoadingException
name
- Fully qualified class name.classLoaderService
- Class loading service. Passing null
is "allowed", but will result in
TCCL usage.ClassLoadingException
- Indicates the class could not be found.Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.