Examples of LogEnabledBeanPostProcessor


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


    @Override
    public void postProcessBeanFactory(BundleContext context, ConfigurableListableBeanFactory factory) throws BeansException, InvalidSyntaxException, BundleException {
        // We need to set the beanfactory by hand. This MAY be a bug in spring-dm but I'm not sure yet
        LogEnabledBeanPostProcessor loggingProcessor = new LogEnabledBeanPostProcessor();
        loggingProcessor.setBeanFactory(factory);
        loggingProcessor.setLogProvider(logProvider);
        loggingProcessor.setOrder(0);
        factory.addBeanPostProcessor(loggingProcessor);
       
        OSGIResourceAnnotationBeanPostProcessor resourceProcessor = new OSGIResourceAnnotationBeanPostProcessor();
        resourceProcessor.setBeanClassLoader(factory.getBeanClassLoader());
        resourceProcessor.setBeanFactory(factory);
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.