Java 类org.apache.camel.core.osgi.OsgiDefaultCamelContext 实例源码

项目:Camel    文件:CamelContextFactory.java   
protected DefaultCamelContext newCamelContext() {
    if (registry != null) {
        return new OsgiDefaultCamelContext(bundleContext, registry);
    } else {
        return new OsgiDefaultCamelContext(bundleContext);
    }
}
项目:reactive-components    文件:CamelComponent.java   
@Activate
public void activate(BundleContext context, CamelConfig config) throws Exception {
    this.camelContext = new OsgiDefaultCamelContext(context, new OsgiServiceRegistry(context));
    this.camelContext.start();
    this.camelreactive = CamelReactiveStreams.get(camelContext);
}
项目:Camel    文件:KuraRouter.java   
protected CamelContext createCamelContext() {
    return new OsgiDefaultCamelContext(bundleContext);
}