use of org.springframework.integration.jpa.support.JpaParameter in project spring-integration by spring-projects.
the class ExpressionEvaluatingParameterSourceFactory method setParameters.
/**
* Define the (optional) parameter values.
* @param parameters the parameters to be set
*/
public void setParameters(List<JpaParameter> parameters) {
Assert.notEmpty(parameters, "parameters must not be null or empty.");
for (JpaParameter parameter : parameters) {
Assert.notNull(parameter, "The provided list (parameters) cannot contain null values.");
}
this.parameters = parameters;
this.expressionEvaluator.getEvaluationContext().setVariable("staticParameters", ExpressionEvaluatingParameterSourceUtils.convertStaticParameters(parameters));
}
Aggregations