|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.binding.support.AbstractPropertyAccessStrategy
org.springframework.binding.support.ObjectPropertyAccessStrategy
public class ObjectPropertyAccessStrategy
An implementation of MutablePropertyAccessStrategy
that provides access
to the properties of any object.
As this class delegates to a DefaultMemberPropertyAccessor
for property access,
there is full support for nested properties and collection types.
DefaultMemberPropertyAccessor
Constructor Summary | |
---|---|
|
ObjectPropertyAccessStrategy(Object target)
Creates a new instance of ObjectPropertyAccessStrategy that will provide access to the properties of the provided object. |
protected |
ObjectPropertyAccessStrategy(ObjectPropertyAccessStrategy parent,
String basePropertyPath)
Creates a child instance of ObjectPropertyAccessStrategy that will delegate to its parent for property access. |
|
ObjectPropertyAccessStrategy(ValueModel domainObjectHolder)
Creates a new instance of ObjectPropertyAccessStrategy that will provide access to the object contained by the provided value model. |
|
ObjectPropertyAccessStrategy(ValueModel domainObjectHolder,
boolean fieldAccessEnabled)
Creates a new instance of ObjectPropertyAccessStrategy that will provide access to the object contained by the provided value model. |
|
ObjectPropertyAccessStrategy(ValueModel domainObjectHolder,
boolean fieldAccessEnabled,
boolean strictNullValueHandling)
Creates a new instance of ObjectPropertyAccessStrategy that will provide access to the object contained by the provided value model. |
Method Summary | |
---|---|
protected void |
domainObjectChanged()
Called when the domain object is changed. |
protected PropertyAccessor |
getPropertyAccessor()
Provides DefaultMemberPropertyAccessor 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 ObjectPropertyAccessStrategy(Object target)
target
- object to be accessed through this class.public ObjectPropertyAccessStrategy(ValueModel domainObjectHolder)
domainObjectHolder
- value model that holds the object
to be accessed through this classpublic ObjectPropertyAccessStrategy(ValueModel domainObjectHolder, boolean fieldAccessEnabled)
domainObjectHolder
- value model that holds the object
to be accessed through this classfieldAccessEnabled
- whether the fields of the objects
should be accessed directly where possible
instead of using methodspublic ObjectPropertyAccessStrategy(ValueModel domainObjectHolder, boolean fieldAccessEnabled, boolean strictNullValueHandling)
domainObjectHolder
- value model that holds the object
to be accessed through this classfieldAccessEnabled
- 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 returnedprotected ObjectPropertyAccessStrategy(ObjectPropertyAccessStrategy parent, String basePropertyPath)
parent
- ObjectPropertyAccessStrategy which will be used to provide property accessbasePropertyPath
- property path that will as a base when accessing
the parent ObjectPropertyAccessStrategyMethod Detail |
---|
protected PropertyAccessor getPropertyAccessor()
DefaultMemberPropertyAccessor
access to subclasses.
getPropertyAccessor
in class AbstractPropertyAccessStrategy
public MutablePropertyAccessStrategy getPropertyAccessStrategyForPath(String propertyPath) throws BeansException
MutablePropertyAccessStrategy
MutablePropertyAccessStrategy
for the given
property.
TODO check why this exists and where this is used.
getPropertyAccessStrategyForPath
in interface MutablePropertyAccessStrategy
getPropertyAccessStrategyForPath
in class AbstractPropertyAccessStrategy
propertyPath
- property.
MutablePropertyAccessStrategy
for the given
property.
BeansException
public MutablePropertyAccessStrategy newPropertyAccessStrategy(ValueModel domainObjectHolder)
MutablePropertyAccessStrategy
MutablePropertyAccessStrategy
for the given
valueModel.
TODO check why this exists and where this is used.
newPropertyAccessStrategy
in interface MutablePropertyAccessStrategy
newPropertyAccessStrategy
in class AbstractPropertyAccessStrategy
domainObjectHolder
- a ValueModel
containing the
domainObject.
MutablePropertyAccessStrategy
.protected void domainObjectChanged()
AbstractPropertyAccessStrategy
domainObjectChanged
in class AbstractPropertyAccessStrategy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |