Class PersistentEntityParameterValueProvider<P extends PersistentProperty<P>>
java.lang.Object
org.springframework.data.mapping.model.PersistentEntityParameterValueProvider<P>
- All Implemented Interfaces:
ParameterValueProvider<P>
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 Parameter
. Additionally a
DefaultSpELExpressionEvaluator
can be configured to get property value resolution trumped by a SpEL
expression evaluation.- Author:
- Oliver Gierke, Johannes Englmeier
-
Constructor Summary
ConstructorDescriptionPersistentEntityParameterValueProvider
(PersistentEntity<?, P> entity, PropertyValueProvider<P> provider, Object parent) -
Method Summary
Modifier and TypeMethodDescription<T> T
getParameterValue
(Parameter<T, P> parameter) Returns the value to be used for the givenParameter
(usually when entity instances are created).
-
Constructor Details
-
PersistentEntityParameterValueProvider
public PersistentEntityParameterValueProvider(PersistentEntity<?, P> entity, PropertyValueProvider<P> provider, Object parent)
-
-
Method Details
-
getParameterValue
Description copied from interface:ParameterValueProvider
Returns the value to be used for the givenParameter
(usually when entity instances are created).- Specified by:
getParameterValue
in interfaceParameterValueProvider<P extends PersistentProperty<P>>
- Parameters:
parameter
- must not be null.- Returns:
-