public abstract class ReflectionTools extends Object
| Constructor and Description | 
|---|
| ReflectionTools() | 
| Modifier and Type | Method and Description | 
|---|---|
| static Getter | getGetter(Class cls,
         PropertyData propertyData) | 
| static Getter | getGetter(Class cls,
         String propertyName,
         String accessorType) | 
| 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) | 
| static Setter | getSetter(Class cls,
         String propertyName,
         String accessorType) | 
| static <T> Class<T> | loadClass(String name,
         ClassLoaderService classLoaderService)Locate class with a given name. | 
public static Getter getGetter(Class cls, PropertyData propertyData)
public static Setter getSetter(Class cls, PropertyData propertyData)
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 reference
 in case of AuditConfiguration.getFor(Configuration) usage.ClassLoadingException - Indicates the class could not be found.Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.