Package org.springframework.beans.factory.config

Examples of org.springframework.beans.factory.config.BeanExpressionContext


    applicationContext.registerSingleton("support", StandardEvaluationContextPostProcessorSupport.class);
    applicationContext.registerSingleton("postProcessor", PostProcessor.class);
    applicationContext.refresh();
    ConfigurableListableBeanFactory bf = applicationContext.getBeanFactory();
    BeanExpressionResolver resolver = bf.getBeanExpressionResolver();
    resolver.evaluate("#{support}", new BeanExpressionContext(bf, null));
    assertThat(postProcessCalled, is(true));

  }
View Full Code Here


          "BatchPropertyBeanPostProcessor requires a ConfigurableListableBeanFactory");
    }

    ConfigurableListableBeanFactory configurableListableBeanFactory = (ConfigurableListableBeanFactory) beanFactory;

    BeanExpressionContext beanExpressionContext = new BeanExpressionContext(configurableListableBeanFactory,
        configurableListableBeanFactory.getBean(StepScope.class));

    this.jsrExpressionParser = new JsrExpressionParser(new StandardBeanExpressionResolver(), beanExpressionContext);
  }
View Full Code Here

    // Explicitly allow environment placeholders inside the expression
    expression = context.getEnvironment().resolvePlaceholders(expression);
    ConfigurableListableBeanFactory beanFactory = context.getBeanFactory();
    BeanExpressionResolver resolver = beanFactory.getBeanExpressionResolver();
    BeanExpressionContext expressionContext = (beanFactory != null) ? new BeanExpressionContext(
        beanFactory, null) : null;
    if (resolver == null) {
      resolver = new StandardBeanExpressionResolver();
    }
    boolean result = (Boolean) resolver.evaluate(expression, expressionContext);
View Full Code Here

TOP

Related Classes of org.springframework.beans.factory.config.BeanExpressionContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.