| Method from org.hibernate.envers.tools.reflection.ReflectionTools Detail: |
public static Getter getGetter(Class cls,
PropertyData propertyData) {
return getGetter(cls, propertyData.getName(), propertyData.getAccessType());
}
|
public static Getter getGetter(Class cls,
String propertyName,
String accessorType) {
Pair< Class, String > key = make(cls, propertyName);
Getter value = getterCache.get(key);
if (value == null) {
value = getAccessor(accessorType).getGetter(cls, propertyName);
// It's ok if two getters are generated concurrently
getterCache.put(key, value);
}
return value;
}
|
public static Setter getSetter(Class cls,
PropertyData propertyData) {
return getSetter(cls, propertyData.getName(), propertyData.getAccessType());
}
|
public static Setter getSetter(Class cls,
String propertyName,
String accessorType) {
Pair< Class, String > key = make(cls, propertyName);
Setter value = setterCache.get(key);
if (value == null) {
value = getAccessor(accessorType).getSetter(cls, propertyName);
// It's ok if two setters are generated concurrently
setterCache.put(key, value);
}
return value;
}
|
public static Class loadClass(String name) {
try {
return Thread.currentThread().getContextClassLoader().loadClass(name);
} catch (ClassNotFoundException e) {
throw new AuditException(e);
}
}
|