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(@NonNull PersistentEntity<?,P> entity,
@NonNull 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(@NonNull @NonNull PersistentEntity<?,P> entity, @NonNull @NonNull PropertyValueProvider<P> provider, @Nullable 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–2019 Pivotal Software, Inc.. All rights reserved.