类 PropertyAccessorFactory
- java.lang.Object
- org.springframework.beans.PropertyAccessorFactory
public abstract class PropertyAccessorFactory extends Object
Simple factory facade for obtainingPropertyAccessor
instances, in particular forBeanWrapper
instances. Conceals the actual target implementation classes and their extended public signature.- 从以下版本开始:
- 2.5.2
- 作者:
- Juergen Hoeller
构造器概要
构造器 构造器 说明 PropertyAccessorFactory()
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 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.
构造器详细资料
PropertyAccessorFactory
public PropertyAccessorFactory()
方法详细资料
forBeanPropertyAccess
public static BeanWrapper forBeanPropertyAccess(Object target)
Obtain a BeanWrapper for the given target object, accessing properties in JavaBeans style.- 参数:
target
- the target object to wrap- 返回:
- the property accessor
- 另请参阅:
BeanWrapperImpl
forDirectFieldAccess
public static ConfigurablePropertyAccessor forDirectFieldAccess(Object target)
Obtain a PropertyAccessor for the given target object, accessing properties in direct field style.- 参数:
target
- the target object to wrap- 返回:
- the property accessor
- 另请参阅:
DirectFieldAccessor