public class RouteReifier extends ProcessorReifier<RouteDefinition>
definition, log
Constructor and Description |
---|
RouteReifier(ProcessorDefinition<?> definition) |
Modifier and Type | Method and Description |
---|---|
RouteDefinition |
adviceWith(org.apache.camel.CamelContext camelContext,
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(org.apache.camel.spi.RouteContext routeContext)
Override this in definition class and implement logic to create the
processor based on the definition model.
|
org.apache.camel.Route |
createRoute(org.apache.camel.CamelContext camelContext,
org.apache.camel.spi.RouteContext routeContext) |
protected org.apache.camel.Route |
doCreateRoute(org.apache.camel.CamelContext camelContext,
org.apache.camel.spi.RouteContext routeContext) |
org.apache.camel.Endpoint |
resolveEndpoint(org.apache.camel.CamelContext camelContext,
String uri) |
addInterceptStrategies, addRoutes, configureChild, createChildProcessor, createCompositeProcessor, createOutputsProcessor, createOutputsProcessor, createOutputsProcessorImpl, createProcessor, getId, makeProcessor, preCreateProcessor, registerReifier, reifier, wrapChannel, wrapChannel, wrapInErrorHandler, wrapProcessor
public RouteReifier(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 builderAdviceWithRouteBuilder
public org.apache.camel.Processor createProcessor(org.apache.camel.spi.RouteContext routeContext) throws Exception
ProcessorReifier
createProcessor
in class ProcessorReifier<RouteDefinition>
Exception
public org.apache.camel.Route createRoute(org.apache.camel.CamelContext camelContext, org.apache.camel.spi.RouteContext routeContext)
public org.apache.camel.Endpoint resolveEndpoint(org.apache.camel.CamelContext camelContext, String uri) throws org.apache.camel.NoSuchEndpointException
org.apache.camel.NoSuchEndpointException
public RouteDefinition adviceWith(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.camelContext
- the camel contextbuilder
- the route builderException
- can be thrown from the route builderAdviceWithRouteBuilder
protected org.apache.camel.Route doCreateRoute(org.apache.camel.CamelContext camelContext, org.apache.camel.spi.RouteContext routeContext) throws Exception
Exception
Apache Camel