Package org.springframework.context.expression

Examples of org.springframework.context.expression.BeanFactoryResolver


    mapper.configure(SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS, false);
  }

  @Override public void afterPropertiesSet() throws Exception {
    userAppCtx = new ClassPathXmlApplicationContext("classpath*:META-INF/rest-shell/**/*.xml");
    beanFactoryResolver = new BeanFactoryResolver(userAppCtx);
    clear();
  }
View Full Code Here


  }

  @Override
  public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
    context.addPropertyAccessor(new BeanFactoryAccessor());
    context.setBeanResolver(new BeanFactoryResolver(applicationContext));
    context.setRootObject(applicationContext);
  }
View Full Code Here

   * @see org.springframework.context.ApplicationContextAware#setApplicationContext(org.springframework.context.ApplicationContext)
   */
  public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {

    context.addPropertyAccessor(new BeanFactoryAccessor());
    context.setBeanResolver(new BeanFactoryResolver(applicationContext));
    context.setRootObject(applicationContext);
  }
View Full Code Here

    this.evaluationContext.addPropertyAccessor(new MapAccessor());

    final BeanFactory beanFactory = this.getBeanFactory();

    if (beanFactory != null) {
      this.evaluationContext.setBeanResolver(new BeanFactoryResolver(
          beanFactory));
    }

    if (this.destinationDirectoryExpression instanceof LiteralExpression) {
      final Path directory = new Path(
View Full Code Here

    this.evaluationContext.addPropertyAccessor(new MapAccessor());

    final BeanFactory beanFactory = this.getBeanFactory();

    if (beanFactory != null) {
      this.evaluationContext.setBeanResolver(new BeanFactoryResolver(
          beanFactory));
    }

    if (this.destinationDirectoryExpression instanceof LiteralExpression) {
      final Path directory = new Path(
View Full Code Here

    Assert.notNull(context);

    this.context = context;
    spelContext = new StandardEvaluationContext();
    spelContext.addPropertyAccessor(new BeanFactoryAccessor());
    spelContext.setBeanResolver(new BeanFactoryResolver(context));
    spelContext.setRootObject(context);
  }
View Full Code Here

          if (useBeanAccessor) {
            ec.addPropertyAccessor(new BeanFactoryAccessor());
            ec.setRootObject(applicationContext);
          }
          if (useBeanResolver) {
            ec.setBeanResolver(new BeanFactoryResolver(applicationContext));
          }
          if (defaultRootObject != null) {
            ec.setRootObject(defaultRootObject);
            if (!useMapAccessor && defaultRootObject instanceof Map)
              ec.addPropertyAccessor(new MapAccessor());
View Full Code Here

    }

    @Override
    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
        context.addPropertyAccessor(new BeanFactoryAccessor());
        context.setBeanResolver(new BeanFactoryResolver(applicationContext));
        context.setRootObject(applicationContext);
    }
View Full Code Here

    this.recoveryCallback = recoveryCallback;
  }

  @Override
  public void setBeanFactory(BeanFactory beanFactory) throws BeansException {
    this.evaluationContext.setBeanResolver(new BeanFactoryResolver(beanFactory));
    this.evaluationContext.addPropertyAccessor(new MapAccessor());
  }
View Full Code Here

TOP

Related Classes of org.springframework.context.expression.BeanFactoryResolver

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.