public final class PropertyAccessorFactory extends Object
PropertyAccessor
instances,
in particular for BeanWrapper
instances. Conceals the actual
target implementation classes and their extended public signature.Modifier and Type | Method and Description |
---|---|
static 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.
|
public static BeanWrapper forBeanPropertyAccess(Object target)
target
- the target object to wrapBeanWrapperImpl
public static ConfigurablePropertyAccessor forDirectFieldAccess(Object target)
target
- the target object to wrapDirectFieldAccessor