org.springframework.datastore.reflect
Class ClassPropertyFetcher
java.lang.Object
org.springframework.datastore.reflect.ClassPropertyFetcher
public class ClassPropertyFetcher
- extends Object
Reads the properties of a class in an optimized manner avoiding
exceptions
- Since:
- 1.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
forClass
public static ClassPropertyFetcher forClass(Class c)
getJavaClass
public Class getJavaClass()
- Returns:
- The Java that this ClassPropertyFetcher was constructor for
getReference
public Object getReference()
getPropertyDescriptors
public PropertyDescriptor[] getPropertyDescriptors()
isReadableProperty
public boolean isReadableProperty(String name)
getPropertyValue
public Object getPropertyValue(String name)
getPropertyValue
public Object getPropertyValue(String name,
boolean onlyInstanceProperties)
getStaticPropertyValue
public <T> T getStaticPropertyValue(String name,
Class<T> c)
getPropertyValue
public <T> T getPropertyValue(String name,
Class<T> c)
getPropertyType
public Class getPropertyType(String name)
getPropertyType
public Class getPropertyType(String name,
boolean onlyInstanceProperties)
getPropertyDescriptor
public PropertyDescriptor getPropertyDescriptor(String name)
getPropertiesOfType
public List<PropertyDescriptor> getPropertiesOfType(Class javaClass)
getPropertiesAssignableToType
public List<PropertyDescriptor> getPropertiesAssignableToType(Class<Collection> collectionClass)