Examples of OsgiBundleXmlApplicationContext


Examples of org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext

            }
            springIntentLocations.add("classpath:" + mapFile);
        }
       
        try {
            OsgiBundleXmlApplicationContext ctx =
                new OsgiBundleXmlApplicationContext(springIntentLocations.toArray(new String [] {}));
            ctx.setPublishContextAsService(false);
            ctx.setBundleContext(bundleContext);
            ctx.refresh();
            LOG.fine("application context: " + ctx);
            IntentMap im = (IntentMap)ctx.getBean("intentMap");
            LOG.fine("retrieved intent map: " + im);
            return im;
        } catch (Throwable t) {
            LOG.log(Level.WARNING, "Intent map load failed: ", t);
            return null;
View Full Code Here

Examples of org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext

        return options;
    }
   
    @Override
    protected OsgiBundleXmlApplicationContext createApplicationContext() {
        return new OsgiBundleXmlApplicationContext(new String[]{"org/apache/camel/itest/osgi/servlet/ServletServiceContext.xml",
                                                                "org/apache/camel/itest/osgi/servlet/CamelServletWithServletServiceContext.xml"});
    }
View Full Code Here

Examples of org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext

        return options;
    }
   
    @Override
    protected OsgiBundleXmlApplicationContext createApplicationContext() {
        return new OsgiBundleXmlApplicationContext(new String[] {CONTEXT_PATH});
    }
View Full Code Here

Examples of org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext

    }

    @Override
    protected CamelContext createCamelContext() throws Exception {
        setThreadContextClassLoader();
        applicationContext = new OsgiBundleXmlApplicationContext(
                new String[]{"org/apache/camel/itest/osgi/sql/springSqlRouteContext.xml"});
        if (bundleContext != null) {
            applicationContext.setBundleContext(bundleContext);
            applicationContext.refresh();
        }
View Full Code Here

Examples of org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext

    }

    @Override
    protected CamelContext createCamelContext() throws Exception {
        setThreadContextClassLoader();
        applicationContext = new OsgiBundleXmlApplicationContext(
            new String[]{"org/apache/camel/itest/osgi/jpa/springJpaRouteContext.xml"});
        if (bundleContext != null) {
            applicationContext.setBundleContext(bundleContext);
            applicationContext.refresh();
        }
View Full Code Here

Examples of org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext


    @Override
    protected CamelContext createCamelContext() throws Exception {
        setThreadContextClassLoader();
        applicationContext = new OsgiBundleXmlApplicationContext(
                new String[]{"org/apache/camel/itest/osgi/jclouds/springJcloudsRouteContext.xml"});
        if (bundleContext != null) {
            applicationContext.setBundleContext(bundleContext);
            applicationContext.refresh();
        }
View Full Code Here

Examples of org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext

        };

    }

    protected OsgiBundleXmlApplicationContext createApplicationContext() {
        return new OsgiBundleXmlApplicationContext(new String[]{"org/drools/karaf/itest/kie-beans.xml"});
    }
View Full Code Here

Examples of org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext

        }
    }

    @Override
    protected CamelContext createCamelContext() throws Exception {
        applicationContext = new OsgiBundleXmlApplicationContext(
            new String[]{"org/apache/camel/itest/osgi/jpa/springJpaRouteContext.xml"});
        if (bundleContext != null) {
            applicationContext.setBundleContext(bundleContext);
            applicationContext.refresh();
        }
View Full Code Here

Examples of org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext

        return options;
    }
   
    @Override
    protected OsgiBundleXmlApplicationContext createApplicationContext() {
        return new OsgiBundleXmlApplicationContext(new String[]{"org/apache/camel/itest/osgi/servlet/ServletService.xml",
                                                                "org/apache/camel/itest/osgi/servlet/CamelServletContext.xml"});
    }
View Full Code Here

Examples of org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext

@RunWith(JUnit4TestRunner.class)
public class JaxbFallbackConverterSpringTest extends OSGiIntegrationSpringTestSupport {

    @Override
    protected OsgiBundleXmlApplicationContext createApplicationContext() {
        return new OsgiBundleXmlApplicationContext(new String[]{"org/apache/camel/itest/osgi/jaxb/CamelContext.xml"});
    }
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.