org.springframework.binding
Interface PropertyAccessStrategy

All Known Subinterfaces:
MutablePropertyAccessStrategy
All Known Implementing Classes:
AbstractPropertyAccessStrategy, AnnotationAwareBeanPropertyAccessStrategy, BeanPropertyAccessStrategy, ClassPropertyAccessStrategy, FormModelPropertyAccessStrategy, ObjectPropertyAccessStrategy

public interface PropertyAccessStrategy

A strategy for accessing a domain object's properties. Different implementations could access different backing objects such as a javabean (BeanPropertyAccessStrategy), hashmap, rowset, or other data structure.

Author:
Keith Donald

Method Summary
 Object getDomainObject()
          Return the target, backing domain object for which property access requests are targeted against.
 PropertyMetadataAccessStrategy getMetadataAccessStrategy()
          Get a metadata accessor, which can return meta information about particular properties of the backed domain object.
 Object getPropertyValue(String propertyPath)
          Get the value of a property.
 

Method Detail

getPropertyValue

Object getPropertyValue(String propertyPath)
                        throws BeansException
Get the value of a property.

Parameters:
propertyPath - name of the property to get the value of
Returns:
the value of the property
Throws:
FatalBeanException - if there is no such property, if the property isn't readable, or if the property getter throws an exception.
BeansException

getMetadataAccessStrategy

PropertyMetadataAccessStrategy getMetadataAccessStrategy()
Get a metadata accessor, which can return meta information about particular properties of the backed domain object.

Returns:
The meta accessor.

getDomainObject

Object getDomainObject()
Return the target, backing domain object for which property access requests are targeted against.

Returns:
The backing target object.


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.