|
||||||||||
| 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.ClassPropertyAccessStrategy
public class ClassPropertyAccessStrategy
An implementation of MutablePropertyAccessStrategy that
provides type-save access to data specified by a class. The data is stored in
a backing map.
As this class delegates to a MapPropertyAccessor for property
access, there is full support for nested properties and collection
types.
DefaultMemberPropertyAccessor| Constructor Summary | |
|---|---|
ClassPropertyAccessStrategy(Class targetClass)
Creates a new instance of ClassPropertyAccessStrategy. |
|
ClassPropertyAccessStrategy(ClassPropertyAccessStrategy parent,
String basePropertyPath)
Creates a child instance of ClassPropertyAccessStrategy that will delegate to its parent for property access. |
|
ClassPropertyAccessStrategy(Object target)
Creates a new instance of ClassPropertyAccessStrategy. |
|
ClassPropertyAccessStrategy(ValueModel domainObjectHolder)
Creates a new instance of ClassPropertyAccessStrategy. |
|
ClassPropertyAccessStrategy(ValueModel domainObjectHolder,
boolean fieldAccessEnabled)
Creates a new instance of ClassPropertyAccessStrategy. |
|
ClassPropertyAccessStrategy(ValueModel domainObjectHolder,
boolean fieldAccessEnabled,
boolean strictNullValueHandling)
Creates a new instance of ClassPropertyAccessStrategy. |
|
| Method Summary | |
|---|---|
protected void |
domainObjectChanged()
Called when the domain object is changed. |
protected PropertyAccessor |
getPropertyAccessor()
|
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 ClassPropertyAccessStrategy(Class targetClass)
targetClass - the target classpublic ClassPropertyAccessStrategy(Object target)
target - the domain objectpublic ClassPropertyAccessStrategy(ValueModel domainObjectHolder)
domainObjectHolder - the value model containing the domain object
public ClassPropertyAccessStrategy(ValueModel domainObjectHolder,
boolean fieldAccessEnabled)
domainObjectHolder - the value model containing the domain objectfieldAccessEnabled - whether the fields of the objects should be
accessed directly where possible instead of using methods
public ClassPropertyAccessStrategy(ValueModel domainObjectHolder,
boolean fieldAccessEnabled,
boolean strictNullValueHandling)
domainObjectHolder - the value model containing the domain objectfieldAccessEnabled - whether the fields of the objects should be
accessed directly where possible instead of using methodsstrictNullValueHandling - whether a
NullValueInNestedPathException should be thrown on nested
null-values or null should be returned
public ClassPropertyAccessStrategy(ClassPropertyAccessStrategy parent,
String basePropertyPath)
parent - ClassPropertyAccessStrategy which will be used to provide property accessbasePropertyPath - property path that will as a base when accessing
the parent ClassPropertyAccessStrategy| Method Detail |
|---|
protected PropertyAccessor getPropertyAccessor()
getPropertyAccessor in class AbstractPropertyAccessStrategy
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 | |||||||||