Examples of OsgiBundleXmlApplicationContext


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

        assertMockEndpointsSatisfied();       
    }
   
    @Override
    protected OsgiBundleXmlApplicationContext createApplicationContext() {
        return new OsgiBundleXmlApplicationContext(new String[]{"org/apache/camel/itest/osgi/packages/CamelContext.xml"});
    }
View Full Code Here

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

            // switch to cxf bundle classloader for spring
            Thread.currentThread().setContextClassLoader(PolicyNamespaceHandler.class.getClassLoader());
           
            LOG.fine("Loading Intent map from "+springIntentLocations);
            System.out.println("Loading Intent map from "+springIntentLocations);
            OsgiBundleXmlApplicationContext ctx = new OsgiBundleXmlApplicationContext(springIntentLocations
                .toArray(new String[] {}));
            ctx.setPublishContextAsService(false);
            ctx.setBundleContext(bundleContext);
            ctx.refresh();
            LOG.fine("application context: " + ctx);
            System.out.println("application context: " + ctx);
            IntentMap im = (IntentMap)ctx.getBean("intentMap");
            LOG.fine("retrieved intent map: " + im);
            System.out.println("retrieved intent map: " + im);
            // switch back
            Thread.currentThread().setContextClassLoader(RemoteServiceAdminCore.class.getClassLoader());
           
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

        assertEquals("OK;456", out.getCode());
    }

    @Override
    protected OsgiBundleXmlApplicationContext createApplicationContext() {
        return new OsgiBundleXmlApplicationContext(new String[]{"org/apache/camel/itest/osgi/cxf/camel-config.xml"});
    }
View Full Code Here

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

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

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

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

    @EndpointInject(uri = "mock:result")
    private MockEndpoint result;
   
    @Override
    protected OsgiBundleXmlApplicationContext createApplicationContext() {
        return new OsgiBundleXmlApplicationContext(new String[]{"org/apache/camel/itest/osgi/aws/CamelContext.xml"});
    }
View Full Code Here

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

    @EndpointInject(uri = "mock:result")
    private MockEndpoint result;
   
    @Override
    protected OsgiBundleXmlApplicationContext createApplicationContext() {
        return new OsgiBundleXmlApplicationContext(new String[]{"org/apache/camel/itest/osgi/aws/CamelIntegrationContext.xml"});
    }
View Full Code Here

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

@Ignore("PaxExam hang on shutdown of this test")
public class RestletDomainServiceTest extends OSGiIntegrationSpringTestSupport {

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