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) |
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)
@Nullable public <T> T getParameterValue(PreferredConstructor.Parameter<T,P> parameter)
ParameterValueProvider
PreferredConstructor.Parameter
(usually when entity instances are created).getParameterValue
in interface ParameterValueProvider<P extends PersistentProperty<P>>
parameter
- must not be null.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.