Spring Data Commons

org.springframework.data.mapping.model
Class SpELAwareParameterValueProvider

java.lang.Object
  extended by org.springframework.data.mapping.model.SpELAwareParameterValueProvider
All Implemented Interfaces:
ParameterValueProvider

public class SpELAwareParameterValueProvider
extends Object
implements ParameterValueProvider

ParameterValueProvider implementation that evaluates the PreferredConstructor.Parameters key against SpelExpressionParser and EvaluationContext.

Author:
Oliver Gierke

Constructor Summary
SpELAwareParameterValueProvider(SpelExpressionParser parser, EvaluationContext context)
          Creates a new SpELAwareParameterValueProvider from the given SpelExpressionParser and EvaluationContext.
 
Method Summary
<T> T
getParameterValue(PreferredConstructor.Parameter<T> parameter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpELAwareParameterValueProvider

public SpELAwareParameterValueProvider(SpelExpressionParser parser,
                                       EvaluationContext context)
Creates a new SpELAwareParameterValueProvider from the given SpelExpressionParser and EvaluationContext.

Parameters:
parser - must not be null
context - must not be null
Method Detail

getParameterValue

public <T> T getParameterValue(PreferredConstructor.Parameter<T> parameter)
Specified by:
getParameterValue in interface ParameterValueProvider

Spring Data Commons

Copyright © 2011. All Rights Reserved.