Package org.apache.james.container.spring.lifecycle

Examples of org.apache.james.container.spring.lifecycle.ConfigurationProvider


      
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        ConfigurationProvider confProvider = factory.getBean(ConfigurationProvider.class);
        HierarchicalConfiguration config = confProvider.getConfiguration(getComponentName());

        // Get the configuration for the class
        configuredClass = config.getString("[@class]");
        if (context != null) {
            context.addBundleListener(this);
View Full Code Here


    /**
     * Parse the configuration file and depending on it register the beans
     */
    public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {

        ConfigurationProvider confProvider = beanFactory.getBean(ConfigurationProvider.class);

        // loop over the beans
        for (String name : beans.keySet()) {

            try {

                HierarchicalConfiguration config = confProvider.getConfiguration(name);

                // Get the configuration for the class
                String repClass = config.getString("[@class]");

                // Create the definition and register it
View Full Code Here

    /**
     * @see org.springframework.beans.factory.config.BeanFactoryPostProcessor#postProcessBeanFactory
     * (org.springframework.beans.factory.config.ConfigurableListableBeanFactory)
     */
    public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
        ConfigurationProvider confProvider = beanFactory.getBean(ConfigurationProvider.class);
        try {
            HierarchicalConfiguration config = confProvider.getConfiguration("mailbox");
            String provider = config.getString("provider", "jpa");

            BeanDefinitionRegistry registry = (BeanDefinitionRegistry) beanFactory;
            String mailbox = null;
            String subscription = null;
View Full Code Here

TOP

Related Classes of org.apache.james.container.spring.lifecycle.ConfigurationProvider

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.