Package org.switchyard.common.camel.event

Examples of org.switchyard.common.camel.event.CamelEventBridge


        if (isEnableCdiIntegration()) {
            CDISupport.setCdiInjector(this);
        } else {
            CommonCamelLogger.ROOT_LOGGER.cdiNotDetected();
        }
        getManagementStrategy().addEventNotifier(new CamelEventBridge());
    }
View Full Code Here


        EventManager eventManager = new EventManager();
        CountingObserver observer = new CountingObserver();
        eventManager.addObserver(observer, CamelContextStartedEvent.class);
        eventManager.addObserver(observer, CamelContextStoppedEvent.class);

        CamelEventBridge eventBridge = new CamelEventBridge(eventManager);
        DefaultCamelContext context = new DefaultCamelContext();
        context.getManagementStrategy().addEventNotifier(eventBridge);

        assertTrue(observer.counter == 0);
        context.start();
View Full Code Here

TOP

Related Classes of org.switchyard.common.camel.event.CamelEventBridge

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.