Package org.springframework.beans
Class PropertyAccessorFactory
- java.lang.Object
- org.springframework.beans.PropertyAccessorFactory
public abstract class PropertyAccessorFactory extends Object
Simple factory facade for obtainingPropertyAccessorinstances, in particular forBeanWrapperinstances. Conceals the actual target implementation classes and their extended public signature.- Since:
- 2.5.2
- Author:
- Juergen Hoeller
Constructor Summary
Constructors Constructor Description PropertyAccessorFactory()
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BeanWrapperforBeanPropertyAccess(Object target)Obtain a BeanWrapper for the given target object, accessing properties in JavaBeans style.static ConfigurablePropertyAccessorforDirectFieldAccess(Object target)Obtain a PropertyAccessor for the given target object, accessing properties in direct field style.
Constructor Detail
PropertyAccessorFactory
public PropertyAccessorFactory()
Method Detail
forBeanPropertyAccess
public static BeanWrapper forBeanPropertyAccess(Object target)
Obtain a BeanWrapper for the given target object, accessing properties in JavaBeans style.- Parameters:
target- the target object to wrap- Returns:
- the property accessor
- See Also:
BeanWrapperImpl
forDirectFieldAccess
public static ConfigurablePropertyAccessor forDirectFieldAccess(Object target)
Obtain a PropertyAccessor for the given target object, accessing properties in direct field style.- Parameters:
target- the target object to wrap- Returns:
- the property accessor
- See Also:
DirectFieldAccessor