Java 类org.apache.camel.spring.boot.CamelContextConfiguration 实例源码

项目:Camel    文件:Application.java   
@Bean
CamelContextConfiguration contextConfiguration() {
    return new CamelContextConfiguration() {
        @Override
        public void beforeApplicationStart(CamelContext context) {
            LOG.info("Configuring Camel metrics on all routes");
            MetricsRoutePolicyFactory fac = new MetricsRoutePolicyFactory();
            fac.setMetricsRegistry(metricRegistry);
            context.addRoutePolicyFactory(fac);
        }

        @Override
        public void afterApplicationStart(CamelContext camelContext) {
            // noop
        }
    };
}
项目:micro-service-example    文件:CamelConfig.java   
@Bean
CamelContextConfiguration contextConfiguration() {
    logger.info("init camel context");
    return camelContext -> {

    };
}
项目:micro-service-example    文件:CamelConfig.java   
@Bean
CamelContextConfiguration contextConfiguration() {
    logger.info("init camel context");
    return camelContext -> {

    };
}
项目:ultrahouse3000    文件:Application.java   
@Bean
public CamelContextConfiguration contextConfiguration() {
    return (CamelContext camelContext) -> { 
        ((DefaultCamelContext)camelContext).setName("camel-ultrahouse3000");
    };
}