public class PersistentEntityParameterValueProvider<P extends PersistentProperty<P>> extends Object implements ParameterValueProvider<P>
ParameterValueProvider based on a PersistentEntity to use a PropertyValueProvider to lookup
the value of the property referenced by the given PreferredConstructor.Parameter. Additionally a
DefaultSpELExpressionEvaluator can be configured to get property value resolution trumped by a SpEL
expression evaluation.| Constructor and Description |
|---|
PersistentEntityParameterValueProvider(PersistentEntity<?,P> entity,
PropertyValueProvider<P> provider,
Object parent)
Creates a new
PersistentEntityParameterValueProvider for the given PersistentEntity and
PropertyValueProvider. |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getParameterValue(PreferredConstructor.Parameter<T,P> parameter)
Returns the value to be used for the given
PreferredConstructor.Parameter (usually when entity instances are created). |
public PersistentEntityParameterValueProvider(PersistentEntity<?,P> entity, PropertyValueProvider<P> provider, Object parent)
PersistentEntityParameterValueProvider for the given PersistentEntity and
PropertyValueProvider.entity - must not be null.provider - must not be null.parent - the parent object being created currently, can be null.public <T> T getParameterValue(PreferredConstructor.Parameter<T,P> parameter)
ParameterValueProviderPreferredConstructor.Parameter (usually when entity instances are created).getParameterValue in interface ParameterValueProvider<P extends PersistentProperty<P>>parameter - must not be null.Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.