final class GenericTypeAwarePropertyDescriptor
extends java.beans.PropertyDescriptor
PropertyDescriptor
class,
overriding getPropertyType()
such that a generically declared
type variable will be resolved against the containing bean class.Modifier and Type | Field and Description |
---|---|
private java.util.Set<java.lang.reflect.Method> |
ambiguousWriteMethods |
private java.lang.Class<?> |
beanClass |
private java.lang.Class<?> |
propertyEditorClass |
private java.lang.Class<?> |
propertyType |
private java.lang.reflect.Method |
readMethod |
private java.lang.reflect.Method |
writeMethod |
private MethodParameter |
writeMethodParameter |
Constructor and Description |
---|
GenericTypeAwarePropertyDescriptor(java.lang.Class<?> beanClass,
java.lang.String propertyName,
java.lang.reflect.Method readMethod,
java.lang.reflect.Method writeMethod,
java.lang.Class<?> propertyEditorClass) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
java.lang.Class<?> |
getBeanClass() |
java.lang.Class<?> |
getPropertyEditorClass() |
java.lang.Class<?> |
getPropertyType() |
java.lang.reflect.Method |
getReadMethod() |
java.lang.reflect.Method |
getWriteMethod() |
java.lang.reflect.Method |
getWriteMethodForActualAccess() |
MethodParameter |
getWriteMethodParameter() |
int |
hashCode() |
createPropertyEditor, isBound, isConstrained, setBound, setConstrained, setPropertyEditorClass, setReadMethod, setWriteMethod
private final java.lang.Class<?> beanClass
private final java.lang.reflect.Method readMethod
private final java.lang.reflect.Method writeMethod
private volatile java.util.Set<java.lang.reflect.Method> ambiguousWriteMethods
private MethodParameter writeMethodParameter
private java.lang.Class<?> propertyType
private final java.lang.Class<?> propertyEditorClass
public GenericTypeAwarePropertyDescriptor(java.lang.Class<?> beanClass, java.lang.String propertyName, java.lang.reflect.Method readMethod, java.lang.reflect.Method writeMethod, java.lang.Class<?> propertyEditorClass) throws java.beans.IntrospectionException
java.beans.IntrospectionException
public java.lang.Class<?> getBeanClass()
public java.lang.reflect.Method getReadMethod()
getReadMethod
in class java.beans.PropertyDescriptor
public java.lang.reflect.Method getWriteMethod()
getWriteMethod
in class java.beans.PropertyDescriptor
public java.lang.reflect.Method getWriteMethodForActualAccess()
public MethodParameter getWriteMethodParameter()
public java.lang.Class<?> getPropertyType()
getPropertyType
in class java.beans.PropertyDescriptor
public java.lang.Class<?> getPropertyEditorClass()
getPropertyEditorClass
in class java.beans.PropertyDescriptor
public boolean equals(java.lang.Object other)
equals
in class java.beans.PropertyDescriptor
public int hashCode()
hashCode
in class java.beans.PropertyDescriptor