Class ReflectionTools
java.lang.Object
org.hibernate.envers.internal.tools.ReflectionTools
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Field
getField
(Class cls, PropertyData propertyData) static Getter
getGetter
(Class cls, String propertyName, String accessorType, ServiceRegistry serviceRegistry) static Getter
getGetter
(Class cls, PropertyData propertyData, ServiceRegistry serviceRegistry) static Setter
getSetter
(Class cls, String propertyName, String accessorType, ServiceRegistry serviceRegistry) static Setter
getSetter
(Class cls, PropertyData propertyData, ServiceRegistry serviceRegistry) static Class<?>
getType
(Class cls, PropertyData propertyData, ServiceRegistry serviceRegistry) static <T> Class<T>
loadClass
(String name, ClassLoaderService classLoaderService) Locate class with a given name.
-
Constructor Details
-
ReflectionTools
public ReflectionTools()
-
-
Method Details
-
getGetter
public static Getter getGetter(Class cls, PropertyData propertyData, ServiceRegistry serviceRegistry) -
getGetter
public static Getter getGetter(Class cls, String propertyName, String accessorType, ServiceRegistry serviceRegistry) -
getSetter
public static Setter getSetter(Class cls, PropertyData propertyData, ServiceRegistry serviceRegistry) -
getSetter
public static Setter getSetter(Class cls, String propertyName, String accessorType, ServiceRegistry serviceRegistry) -
getField
-
getType
public static Class<?> getType(Class cls, PropertyData propertyData, ServiceRegistry serviceRegistry) -
loadClass
public static <T> Class<T> loadClass(String name, ClassLoaderService classLoaderService) throws ClassLoadingException Locate class with a given name.- Parameters:
name
- Fully qualified class name.classLoaderService
- Class loading service. Passingnull
is "allowed", but will result in TCCL usage.- Returns:
- The cass reference.
- Throws:
ClassLoadingException
- Indicates the class could not be found.
-