Top Description Constructors Methods
org.springframework.beans

public final Class PropertyAccessorFactory

extends Object
Class Inheritance

Simple factory facade for obtaining PropertyAccessor instances, in particular for BeanWrapper instances. Conceals the actual target implementation classes and their extended public signature.
Author
Juergen Hoeller
Since
2.5.2

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static BeanWrapper

Returns:

the property accessor
forBeanPropertyAccess
(Object
the target object to wrap
target
)

Obtain a BeanWrapper for the given target object, accessing properties in JavaBeans style.

public static ConfigurablePropertyAccessor

Returns:

the property accessor
forDirectFieldAccess
(Object
the target object to wrap
target
)

Obtain a PropertyAccessor for the given target object, accessing properties in direct field style.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PropertyAccessorFactoryback to summary
private PropertyAccessorFactory()

Method Detail

forBeanPropertyAccessback to summary
public static BeanWrapper forBeanPropertyAccess(Object target)

Obtain a BeanWrapper for the given target object, accessing properties in JavaBeans style.

Parameters
target:Object

the target object to wrap

Returns:BeanWrapper

the property accessor

See Also
BeanWrapperImpl
forDirectFieldAccessback to summary
public static ConfigurablePropertyAccessor forDirectFieldAccess(Object target)

Obtain a PropertyAccessor for the given target object, accessing properties in direct field style.

Parameters
target:Object

the target object to wrap

Returns:ConfigurablePropertyAccessor

the property accessor

See Also
DirectFieldAccessor