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 org.hibernate.property.access.spi.Getter
getGetter
(Class cls, String propertyName, String accessorType, org.hibernate.service.ServiceRegistry serviceRegistry) static org.hibernate.property.access.spi.Getter
getGetter
(Class cls, PropertyData propertyData, org.hibernate.service.ServiceRegistry serviceRegistry) static org.hibernate.property.access.spi.Setter
getSetter
(Class cls, String propertyName, String accessorType, org.hibernate.service.ServiceRegistry serviceRegistry) static org.hibernate.property.access.spi.Setter
getSetter
(Class cls, PropertyData propertyData, org.hibernate.service.ServiceRegistry serviceRegistry) static Class<?>
getType
(Class cls, PropertyData propertyData, org.hibernate.service.ServiceRegistry serviceRegistry) static <T> Class<T>
loadClass
(String name, org.hibernate.boot.registry.classloading.spi.ClassLoaderService classLoaderService) Locate class with a given name.static void
reset()
-
Constructor Details
-
ReflectionTools
public ReflectionTools()
-
-
Method Details
-
getGetter
public static org.hibernate.property.access.spi.Getter getGetter(Class cls, PropertyData propertyData, org.hibernate.service.ServiceRegistry serviceRegistry) -
getGetter
-
getSetter
public static org.hibernate.property.access.spi.Setter getSetter(Class cls, PropertyData propertyData, org.hibernate.service.ServiceRegistry serviceRegistry) -
getSetter
-
getField
-
getType
public static Class<?> getType(Class cls, PropertyData propertyData, org.hibernate.service.ServiceRegistry serviceRegistry) -
loadClass
public static <T> Class<T> loadClass(String name, org.hibernate.boot.registry.classloading.spi.ClassLoaderService classLoaderService) throws org.hibernate.boot.registry.classloading.spi.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:
org.hibernate.boot.registry.classloading.spi.ClassLoadingException
- Indicates the class could not be found.
-
reset
public static void reset()
-