Package org.apache.cloudstack.spring.module.context

Examples of org.apache.cloudstack.spring.module.context.ResourceApplicationContext.refresh()


        if (log.isInfoEnabled()) {
            for (Resource resource : resources) {
                log.info("Loading module context [{}] from {}", def.getName(), resource);
            }
        }
        context.refresh();
        log.info("Loaded module context [{}] in {} ms", def.getName(), (System.currentTimeMillis() - start));

        contexts.put(def.getName(), context);

        return context;
View Full Code Here


    protected ApplicationContext getDefaultsContext() {
        URL config = DefaultModuleDefinitionSet.class.getResource(DEFAULT_CONFIG_XML);

        ResourceApplicationContext context = new ResourceApplicationContext(new UrlResource(config));
        context.setApplicationName("/defaults");
        context.refresh();

        @SuppressWarnings("unchecked")
        final List<Resource> resources = (List<Resource>)context.getBean(DEFAULT_CONFIG_RESOURCES);

        withModule(new WithModule() {
View Full Code Here

        if ( log.isInfoEnabled() ) {
            for ( Resource resource : resources ) {
                log.info("Loading module context [{}] from {}", def.getName(), resource);
            }
        }
        context.refresh();
        log.info("Loaded module context [{}] in {} ms", def.getName(), (System.currentTimeMillis() - start));
       
        contexts.put(def.getName(), context);
       
        return context;
View Full Code Here

    protected ApplicationContext getDefaultsContext() {
        URL config = DefaultModuleDefinitionSet.class.getResource(DEFAULT_CONFIG_XML);
       
        ResourceApplicationContext context = new ResourceApplicationContext(new UrlResource(config));
        context.setApplicationName("/defaults");
        context.refresh();
       
        @SuppressWarnings("unchecked")
        final List<Resource> resources = (List<Resource>) context.getBean(DEFAULT_CONFIG_RESOURCES);
       
        withModule(new WithModule() {
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.