Package org.apache.camel.osgi

Examples of org.apache.camel.osgi.CamelContextFactory


            }
        }
    }

    protected CamelContext createCamelContext() throws Exception {
        CamelContextFactory factory = new CamelContextFactory();
        factory.setBundleContext(bundleContext);
        log.info("Get the bundleContext is " + bundleContext);
        return factory.createContext();
    }
View Full Code Here


    private Injector injector;
   
    public OSGiCamelContextProvider(BundleContext context) {
        // In this we can support to run this provider with or without OSGI
        if (context != null) {
            factory = new CamelContextFactory();
            factory.setBundleContext(context);
        } else {
            factory = null;
        }
    }
View Full Code Here

        LOG.info("Get the bundleContext is " + bundleContext);
        LOG.info("Application installed as bundle id: " + bundleContext.getBundle().getBundleId());

        setThreadContextClassLoader();

        CamelContextFactory factory = new CamelContextFactory();
        factory.setBundleContext(bundleContext);
        factory.setRegistry(createRegistry());
        return factory.createContext();
    }
View Full Code Here

    public void tearDown() throws Exception {
        super.tearDown();
    }
   
    protected CamelContext createCamelContext() throws Exception {
        CamelContextFactory factory = new CamelContextFactory();
        factory.setBundleContext(bundleContext);
        LOG.info("Get the bundleContext is " + bundleContext);
        return factory.createContext();
    }
View Full Code Here

        LOG.info("Get the bundleContext is " + bundleContext);
        LOG.info("Application installed as bundle id: " + bundleContext.getBundle().getBundleId());

        setThreadContextClassLoader();

        CamelContextFactory factory = new CamelContextFactory();
        factory.setBundleContext(bundleContext);
        factory.setRegistry(createRegistry());
        return factory.createContext();
    }
View Full Code Here

//            }
//        }
    }

    protected CamelContext createCamelContext() throws Exception {
        CamelContextFactory factory = new CamelContextFactory();
        factory.setBundleContext(bundleContext);
        log.info("Get the bundleContext is " + bundleContext);
        return factory.createContext();
    }
View Full Code Here

            }
        }
    }

    protected CamelContext createCamelContext() throws Exception {
        CamelContextFactory factory = new CamelContextFactory();
        factory.setBundleContext(bundleContext);
        log.info("Get the bundleContext is " + bundleContext);
        return factory.createContext();
    }
View Full Code Here

    private Set<RoutesBuilder> routeBuilders;
    @Inject
    private Injector injector;
   
    public OSGiCamelContextProvider(BundleContext context) {
        factory = new CamelContextFactory();
        factory.setBundleContext(context);
    }
View Full Code Here

//            }
//        }
    }

    protected CamelContext createCamelContext() throws Exception {
        CamelContextFactory factory = new CamelContextFactory();
        factory.setBundleContext(bundleContext);
        log.info("Get the bundleContext is " + bundleContext);
        return factory.createContext();
    }
View Full Code Here

    private Injector injector;
   
    public OSGiCamelContextProvider(BundleContext context) {
        // In this we can support to run this provider with or without OSGI
        if (context != null) {
            factory = new CamelContextFactory();
            factory.setBundleContext(context);
        } else {
            factory = null;
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.camel.osgi.CamelContextFactory

Copyright © 2018 www.massapicom. 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.