Package org.springframework.context.support

Examples of org.springframework.context.support.AbstractApplicationContext.refresh()


    void configure(Object beanInstance) {
        // check the ApplicationContext states first , and call the refresh if necessary
        if (applicationContext instanceof AbstractApplicationContext) {
            AbstractApplicationContext context = (AbstractApplicationContext) applicationContext;
            if (!context.isActive()) {
                context.refresh();
            }
        }
        configurer.configureBean(beanId, beanInstance);
    }
   
View Full Code Here


    public void configure(Object beanInstance) {
        // check the ApplicationContext states first , and call the refresh if necessary
        if (((SpringCamelContext)getCamelContext()).getApplicationContext() instanceof AbstractApplicationContext) {
            AbstractApplicationContext context = (AbstractApplicationContext)((SpringCamelContext)getCamelContext()).getApplicationContext();
            if (!context.isActive()) {
                context.refresh();
            }
        }
        configurer.configureBean(beanId, beanInstance);
    }
View Full Code Here

                                }
                        }
                       
                        if (beanClassName.indexOf(".ClassPathXmlApplicationContext") != -1) {                                                                  
                                appContext = new ClassPathXmlApplicationContext(listValues, false, scaParentContext);                                  
                                appContext.refresh();
                                includeAnnotationProcessors(appContext.getBeanFactory());
                                return appContext;
                        } else {
                                appContext = new FileSystemXmlApplicationContext(listValues, false, scaParentContext);                                 
                                appContext.refresh();
View Full Code Here

                                appContext.refresh();
                                includeAnnotationProcessors(appContext.getBeanFactory());
                                return appContext;
                        } else {
                                appContext = new FileSystemXmlApplicationContext(listValues, false, scaParentContext);                                 
                                appContext.refresh();
                                includeAnnotationProcessors(appContext.getBeanFactory());
                                return appContext;
                        }
                }              
        }
View Full Code Here

                                }
                        }
                       
                        if (beanClassName.indexOf(".ClassPathXmlApplicationContext") != -1) {                                                                  
                                appContext = new ClassPathXmlApplicationContext(listValues, false, scaParentContext);                                  
                                appContext.refresh(); // TODO why is this needed here now?
                                includeAnnotationProcessors(appContext.getBeanFactory());
                                return appContext;
                        } else {
                                appContext = new FileSystemXmlApplicationContext(listValues, false, scaParentContext);                                 
                                appContext.refresh(); // TODO why is this needed here now?
View Full Code Here

                                appContext.refresh(); // TODO why is this needed here now?
                                includeAnnotationProcessors(appContext.getBeanFactory());
                                return appContext;
                        } else {
                                appContext = new FileSystemXmlApplicationContext(listValues, false, scaParentContext);                                 
                                appContext.refresh(); // TODO why is this needed here now?
                                includeAnnotationProcessors(appContext.getBeanFactory());
                                return appContext;
                        }
                }              
        }
View Full Code Here

    void configure(Object beanInstance) {
        // check the ApplicationContext states first , and call the refresh if necessary
        if (applicationContext instanceof AbstractApplicationContext) {
            AbstractApplicationContext context = (AbstractApplicationContext) applicationContext;
            if (!context.isActive()) {
                context.refresh();
            }
        }
        configurer.configureBean(beanId, beanInstance);
    }
   
View Full Code Here

    void configure(Object beanInstance) {
        // check the ApplicationContext states first , and call the refresh if necessary
        if (applicationContext instanceof AbstractApplicationContext) {
            AbstractApplicationContext context = (AbstractApplicationContext) applicationContext;
            if (!context.isActive()) {
                context.refresh();
            }
        }
        configurer.configureBean(beanId, beanInstance);
    }
   
View Full Code Here

                DefaultListableBeanFactory f = super.createBeanFactory();
                f.addBeanPostProcessor(new BundleContextAwareProcessor(bundleContext));
                return f;
            }
        };
        ctx.refresh();

        verify(bundleContext, bundle);

        // Test realm
        Object obj = ctx.getBean("realm");
View Full Code Here

    void configure(Object beanInstance) {
        // check the ApplicationContext states first , and call the refresh if necessary
        if (applicationContext instanceof AbstractApplicationContext) {
            AbstractApplicationContext context = (AbstractApplicationContext) applicationContext;
            if (!context.isActive()) {
                context.refresh();
            }
        }
        configurer.configureBean(beanId, beanInstance);
    }
   
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.