Package org.springframework.beans
Class PropertyAccessorFactory
java.lang.Object
org.springframework.beans.PropertyAccessorFactory
Simple factory facade for obtaining
PropertyAccessor
instances,
in particular for BeanWrapper
instances. Conceals the actual
target implementation classes and their extended public signature.- Since:
- 2.5.2
- Author:
- Juergen Hoeller
-
Method Summary
Modifier and TypeMethodDescriptionstatic BeanWrapper
forBeanPropertyAccess
(Object target) Obtain a BeanWrapper for the given target object, accessing properties in JavaBeans style.static ConfigurablePropertyAccessor
forDirectFieldAccess
(Object target) Obtain a PropertyAccessor for the given target object, accessing properties in direct field style.
-
Method Details
-
forBeanPropertyAccess
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:
-
forDirectFieldAccess
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:
-