use of org.apache.camel.spi.RouteContext in project fabric8 by jboss-fuse.
the class Tracer method manage.
@Override
public void manage(CamelContext context) throws Exception {
final ProcessorFactory delegate = context.getProcessorFactory();
context.setProcessorFactory(new ProcessorFactory() {
@Override
public Processor createChildProcessor(RouteContext routeContext, ProcessorDefinition<?> definition, boolean mandatory) throws Exception {
Processor proc = delegate != null ? delegate.createChildProcessor(routeContext, definition, mandatory) : definition.createOutputsProcessor(routeContext);
return wrap(routeContext, definition, proc);
}
@Override
public Processor createProcessor(RouteContext routeContext, ProcessorDefinition<?> definition) throws Exception {
Processor proc = delegate != null ? delegate.createProcessor(routeContext, definition) : definition.createProcessor(routeContext);
return wrap(routeContext, definition, proc);
}
});
}
use of org.apache.camel.spi.RouteContext in project fabric8 by jboss-fuse.
the class Breadcrumbs method manage.
@Override
public void manage(CamelContext context) throws Exception {
final ProcessorFactory delegate = context.getProcessorFactory();
context.setProcessorFactory(new ProcessorFactory() {
@Override
public Processor createChildProcessor(RouteContext routeContext, ProcessorDefinition<?> definition, boolean mandatory) throws Exception {
Processor proc = delegate != null ? delegate.createChildProcessor(routeContext, definition, mandatory) : definition.createOutputsProcessor(routeContext);
return wrap(routeContext, definition, proc);
}
@Override
public Processor createProcessor(RouteContext routeContext, ProcessorDefinition<?> definition) throws Exception {
Processor proc = delegate != null ? delegate.createProcessor(routeContext, definition) : definition.createProcessor(routeContext);
return wrap(routeContext, definition, proc);
}
});
}
use of org.apache.camel.spi.RouteContext in project fabric8 by jboss-fuse.
the class Profiler method manage.
@Override
public void manage(CamelContext context) throws Exception {
final ProcessorFactory delegate = context.getProcessorFactory();
context.setProcessorFactory(new ProcessorFactory() {
@Override
public Processor createChildProcessor(RouteContext routeContext, ProcessorDefinition<?> definition, boolean mandatory) throws Exception {
Processor processor = delegate != null ? delegate.createChildProcessor(routeContext, definition, mandatory) : definition.createOutputsProcessor(routeContext);
return wrap(routeContext, definition, processor);
}
@Override
public Processor createProcessor(RouteContext routeContext, ProcessorDefinition<?> definition) throws Exception {
Processor processor = delegate != null ? delegate.createProcessor(routeContext, definition) : definition.createProcessor(routeContext);
return wrap(routeContext, definition, processor);
}
});
}
Aggregations