Package org.springframework.beans.factory.config

Examples of org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.postProcessBeanFactory()


        super(parentBeanFactory);
        reader = createReader(brokerName);
        reader.loadBeanDefinitions(resource);
        PropertyPlaceholderConfigurer configurer = new PropertyPlaceholderConfigurer();
        configurer.setSystemPropertiesMode(PropertyPlaceholderConfigurer.SYSTEM_PROPERTIES_MODE_OVERRIDE);
        configurer.postProcessBeanFactory(this);
    }

    protected XmlBeanDefinitionReader getReader() {
        return reader;
    }
View Full Code Here


        PropertyPlaceholderConfigurer configurer = new PropertyPlaceholderConfigurer();
        configurer.setProperties(properties);
        configurer.setIgnoreUnresolvablePlaceholders(false);
        configurer.setIgnoreResourceNotFound(false);
        configurer.setSystemPropertiesMode(PropertyPlaceholderConfigurer.SYSTEM_PROPERTIES_MODE_FALLBACK);
        configurer.postProcessBeanFactory(beanFactory);
       
        return beanFactory;
    }

}
View Full Code Here

                FileSystemResource config = new FileSystemResource(new File(_configDir, "securityConfig.xml"));
                XmlBeanFactory factory = new XmlBeanFactory(config);

                PropertyPlaceholderConfigurer propsCfg = new PropertyPlaceholderConfigurer();
                propsCfg.setSearchSystemEnvironment(true);
                propsCfg.postProcessBeanFactory(factory);
                securityProvider = (SecurityProvider) factory.getBean("securityProvider");

            }
        } catch (RuntimeException except) {
            _logger.error("Error during initialization of security service", except);
View Full Code Here

      // that requires the machinery of InstanceInfo.getPropertiesResource.
      PropertyPlaceholderConfigurer cfg = new PropertyPlaceholderConfigurer();
      Properties props = new Properties();
      props.putAll(config);
      cfg.setProperties(props);
      cfg.postProcessBeanFactory(factory);

      return (Connector) factory.getBean("Livelink_Enterprise_Server");
    } catch (Throwable t) {
      throw new RepositoryException(t);
    }
View Full Code Here

        PropertyPlaceholderConfigurer cfg = new PropertyPlaceholderConfigurer();
        Properties properties = new Properties();
        properties.setProperty("staticResourceURL", getStaticResourceURL());
        cfg.setProperties(properties);
        // now actually do the replacement
        cfg.postProcessBeanFactory(applicationContext.getBeanFactory());       
        applicationContext.refresh();
    }
   
    private void invokeService() {       
        DummyInterface client = (DummyInterface) applicationContext.getBean("dummy-client");
View Full Code Here

        PropertyPlaceholderConfigurer cfg = new PropertyPlaceholderConfigurer();
        Properties properties = new Properties();
        properties.setProperty("staticResourceURL", getStaticResourceURL());
        cfg.setProperties(properties);
        // now actually do the replacement
        cfg.postProcessBeanFactory(applicationContext.getBeanFactory());       
        applicationContext.refresh();
    }
   
    private void invokeService() {       
        DummyInterface client = (DummyInterface) applicationContext.getBean("dummy-client");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.