Package org.springframework.beans.factory.support

Examples of org.springframework.beans.factory.support.PropertiesBeanDefinitionReader


    sac.registerSingleton("aca", ACATester.class, new MutablePropertyValues());

    sac.registerPrototype("aca-prototype", ACATester.class, new MutablePropertyValues());

    PropertiesBeanDefinitionReader reader = new PropertiesBeanDefinitionReader(sac.getDefaultListableBeanFactory());
    reader.loadBeanDefinitions(new ClassPathResource("testBeans.properties", getClass()));
    sac.refresh();
    sac.addApplicationListener(listener);

    StaticMessageSource messageSource = sac.getStaticMessageSource();
    Map<String, String> usMessages = new HashMap<String, String>(3);
View Full Code Here


   * <p>DataSource or JdbcTemplate still need to be set.
   * @see #setDataSource
   * @see #setJdbcTemplate
   */
  public JdbcBeanDefinitionReader(BeanDefinitionRegistry beanFactory) {
    this.propReader = new PropertiesBeanDefinitionReader(beanFactory);
  }
View Full Code Here

   * @return a new PropertiesBeanDefinitionReader
   * @see PropertiesBeanDefinitionReader
   */
  @Override
  protected BeanDefinitionReader createBeanDefinitionReader(final GenericApplicationContext context) {
    return new PropertiesBeanDefinitionReader(context);
  }
View Full Code Here

    GenericWebApplicationContext factory = new GenericWebApplicationContext();
    factory.setParent(getApplicationContext());
    factory.setServletContext(getServletContext());

    // Load bean definitions from resource bundle.
    PropertiesBeanDefinitionReader reader = new PropertiesBeanDefinitionReader(factory);
    reader.setDefaultParentBean(this.defaultParentView);
    for (ResourceBundle bundle : bundles) {
      reader.registerBeanDefinitions(bundle);
    }

    factory.refresh();

    // Cache factory for both Locale and ResourceBundle list.
View Full Code Here

TOP

Related Classes of org.springframework.beans.factory.support.PropertiesBeanDefinitionReader

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.