|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.binding.support.AbstractPropertyAccessStrategy
org.springframework.binding.support.BeanPropertyAccessStrategy
public class BeanPropertyAccessStrategy
An implementation of MutablePropertyAccessStrategy that provides access
to the properties of a JavaBean.
As this class delegates to a BeanWrapper for property access, there is
full support for nested properties, enabling the setting/getting
of properties on subproperties to an unlimited depth.
BeanWrapper| Constructor Summary | |
|---|---|
protected |
BeanPropertyAccessStrategy(BeanPropertyAccessStrategy parent,
String basePropertyPath)
Creates a child instance of BeanPropertyAccessStrategy that will delegate to its parent for property access. |
|
BeanPropertyAccessStrategy(Object bean)
Creates a new instance of BeanPropertyAccessStrategy that will provide access to the properties of the provided JavaBean. |
|
BeanPropertyAccessStrategy(ValueModel domainObjectHolder)
Creates a new instance of BeanPropertyAccessStrategy that will provide access to the JavaBean contained by the provided value model. |
| Method Summary | |
|---|---|
protected void |
domainObjectChanged()
Called when the domain object is changed. |
protected BeanWrapper |
getBeanWrapper()
Provides BeanWrapper access to subclasses. |
protected PropertyAccessor |
getPropertyAccessor()
Provides BeanWrapper access to subclasses. |
MutablePropertyAccessStrategy |
getPropertyAccessStrategyForPath(String propertyPath)
Get a MutablePropertyAccessStrategy for the given
property. |
MutablePropertyAccessStrategy |
newPropertyAccessStrategy(ValueModel domainObjectHolder)
Return a new MutablePropertyAccessStrategy for the given
valueModel. |
| Methods inherited from class org.springframework.binding.support.AbstractPropertyAccessStrategy |
|---|
getAllUserMetadataFor, getDomainObject, getDomainObjectHolder, getFullPropertyPath, getLastPropertySeparatorIndex, getMetadataAccessStrategy, getParentPropertyPath, getPropertyName, getPropertyValue, getPropertyValueModel, getUserMetadataFor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BeanPropertyAccessStrategy(Object bean)
bean - JavaBean to be accessed through this class.public BeanPropertyAccessStrategy(ValueModel domainObjectHolder)
domainObjectHolder - value model that holds the JavaBean to
be accessed through this class
protected BeanPropertyAccessStrategy(BeanPropertyAccessStrategy parent,
String basePropertyPath)
parent - BeanPropertyAccessStrategy which will be used to provide property accessbasePropertyPath - property path that will as a base when accessing the parent
BeanPropertyAccessStrategy| Method Detail |
|---|
protected BeanWrapper getBeanWrapper()
BeanWrapper access to subclasses.
BeanWrapper used to access the bean.protected PropertyAccessor getPropertyAccessor()
BeanWrapper access to subclasses.
getPropertyAccessor in class AbstractPropertyAccessStrategyBeanWrapper used to access the bean.
public MutablePropertyAccessStrategy getPropertyAccessStrategyForPath(String propertyPath)
throws BeansException
MutablePropertyAccessStrategyMutablePropertyAccessStrategy for the given
property.
TODO check why this exists and where this is used.
getPropertyAccessStrategyForPath in interface MutablePropertyAccessStrategygetPropertyAccessStrategyForPath in class AbstractPropertyAccessStrategypropertyPath - property.
MutablePropertyAccessStrategy for the given
property.
BeansExceptionpublic MutablePropertyAccessStrategy newPropertyAccessStrategy(ValueModel domainObjectHolder)
MutablePropertyAccessStrategyMutablePropertyAccessStrategy for the given
valueModel.
TODO check why this exists and where this is used.
newPropertyAccessStrategy in interface MutablePropertyAccessStrategynewPropertyAccessStrategy in class AbstractPropertyAccessStrategydomainObjectHolder - a ValueModel containing the
domainObject.
MutablePropertyAccessStrategy.protected void domainObjectChanged()
AbstractPropertyAccessStrategy
domainObjectChanged in class AbstractPropertyAccessStrategy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||