public class RouteReifier extends ProcessorReifier<RouteDefinition>
definition, logcamelContext, routeContext| Constructor and Description |
|---|
RouteReifier(org.apache.camel.CamelContext camelContext,
ProcessorDefinition<?> definition) |
RouteReifier(org.apache.camel.spi.RouteContext routeContext,
ProcessorDefinition<?> definition) |
| Modifier and Type | Method and Description |
|---|---|
RouteDefinition |
adviceWith(RouteBuilder builder)
Advices this route with the route builder.
|
static RouteDefinition |
adviceWith(RouteDefinition definition,
org.apache.camel.CamelContext camelContext,
RouteBuilder builder)
Advices this route with the route builder.
|
org.apache.camel.Processor |
createProcessor()
Override this in definition class and implement logic to create the
processor based on the definition model.
|
org.apache.camel.Route |
createRoute() |
protected org.apache.camel.Route |
doCreateRoute(org.apache.camel.CamelContext camelContext,
org.apache.camel.spi.RouteContext routeContext) |
org.apache.camel.Endpoint |
resolveEndpoint(String uri) |
addInterceptStrategies, addRoutes, clearReifiers, configureChild, createChildProcessor, createCompositeProcessor, createOutputsProcessor, createOutputsProcessor, createOutputsProcessorImpl, createProcessor, getConfiguredExecutorService, getConfiguredScheduledExecutorService, getId, hasOutputs, lookupExecutorServiceRef, lookupScheduledExecutorServiceRef, makeProcessor, preCreateProcessor, registerReifier, reifier, willCreateNewThreadPool, wrapChannel, wrapChannel, wrapInErrorHandler, wrapProcessorasRef, createExpression, createExpression, createPredicate, createPredicate, or, parse, parse, parseBoolean, parseBoolean, parseFloat, parseFloat, parseInt, parseInt, parseLong, parseLong, parseStringpublic RouteReifier(org.apache.camel.spi.RouteContext routeContext, ProcessorDefinition<?> definition)
public RouteReifier(org.apache.camel.CamelContext camelContext, ProcessorDefinition<?> definition)
public static RouteDefinition adviceWith(RouteDefinition definition, org.apache.camel.CamelContext camelContext, RouteBuilder builder) throws Exception
RouteBuilder but the specialized
AdviceWithRouteBuilder has additional features when using the
advice with
feature. We therefore suggest you to use the
AdviceWithRouteBuilder.
The advice process will add the interceptors, on exceptions, on
completions etc. configured from the route builder to this route.
This is mostly used for testing purpose to add interceptors and the likes
to an existing route.
Will stop and remove the old route from camel context and add and start
this new advised route.definition - the model definitioncamelContext - the camel contextbuilder - the route builderException - can be thrown from the route builderAdviceWithRouteBuilderpublic org.apache.camel.Processor createProcessor() throws Exception
ProcessorReifiercreateProcessor in class ProcessorReifier<RouteDefinition>Exceptionpublic org.apache.camel.Route createRoute()
public org.apache.camel.Endpoint resolveEndpoint(String uri) throws org.apache.camel.NoSuchEndpointException
org.apache.camel.NoSuchEndpointExceptionpublic RouteDefinition adviceWith(RouteBuilder builder) throws Exception
RouteBuilder but the specialized
AdviceWithRouteBuilder has additional
features when using the
advice with
feature. We therefore suggest you to use the
AdviceWithRouteBuilder.
The advice process will add the interceptors, on exceptions, on
completions etc. configured from the route builder to this route.
This is mostly used for testing purpose to add interceptors and the likes
to an existing route.
Will stop and remove the old route from camel context and add and start
this new advised route.builder - the route builderException - can be thrown from the route builderAdviceWithRouteBuilderprotected org.apache.camel.Route doCreateRoute(org.apache.camel.CamelContext camelContext, org.apache.camel.spi.RouteContext routeContext) throws Exception
ExceptionApache Camel