List of usage examples for org.springframework.batch.core.jsr.configuration.support JsrExpressionParser JsrExpressionParser
public JsrExpressionParser(BeanExpressionResolver beanExpressionResolver,
BeanExpressionContext beanExpressionContext)
Creates a new instances of this expression parser with the provided expression resolver and context to evaluate against.
From source file:org.springframework.batch.core.jsr.launch.support.BatchPropertyBeanPostProcessor.java
@Override public void setBeanFactory(BeanFactory beanFactory) throws BeansException { if (!(beanFactory instanceof ConfigurableListableBeanFactory)) { throw new IllegalArgumentException( "BatchPropertyBeanPostProcessor requires a ConfigurableListableBeanFactory"); }// w w w.j av a2 s .co m ConfigurableListableBeanFactory configurableListableBeanFactory = (ConfigurableListableBeanFactory) beanFactory; BeanExpressionContext beanExpressionContext = new BeanExpressionContext(configurableListableBeanFactory, configurableListableBeanFactory.getBean(StepScope.class)); this.jsrExpressionParser = new JsrExpressionParser(new StandardBeanExpressionResolver(), beanExpressionContext); }