org.springframework.data.mapping.model
Class SpELAwareParameterValueProvider
java.lang.Object
org.springframework.data.mapping.model.SpELAwareParameterValueProvider
- All Implemented Interfaces:
- ParameterValueProvider
public class SpELAwareParameterValueProvider
- extends Object
- implements ParameterValueProvider
ParameterValueProvider
implementation that evaluates the PreferredConstructor.Parameter
s key against
SpelExpressionParser
and EvaluationContext
.
- Author:
- Oliver Gierke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpELAwareParameterValueProvider
public SpELAwareParameterValueProvider(SpelExpressionParser parser,
EvaluationContext context)
- Creates a new
SpELAwareParameterValueProvider
from the given SpelExpressionParser
and EvaluationContext
.
- Parameters:
parser
- must not be nullcontext
- must not be null
getParameterValue
public <T> T getParameterValue(PreferredConstructor.Parameter<T> parameter)
- Specified by:
getParameterValue
in interface ParameterValueProvider
Copyright © 2011. All Rights Reserved.