public class RouteReifier extends ProcessorReifier<RouteDefinition>
definition, log
Constructor and Description |
---|
RouteReifier(ProcessorDefinition<?> definition) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.camel.spi.RouteContext |
addRoutes(org.apache.camel.CamelContext camelContext,
Collection<org.apache.camel.Route> routes,
FromDefinition fromType) |
List<org.apache.camel.spi.RouteContext> |
addRoutes(ModelCamelContext camelContext,
Collection<org.apache.camel.Route> routes) |
RouteDefinition |
adviceWith(org.apache.camel.CamelContext camelContext,
RouteBuilder builder) |
RouteDefinition |
adviceWith(ModelCamelContext camelContext,
RouteBuilder builder)
Advices this route with the route builder.
|
static RouteDefinition |
adviceWith(RouteDefinition definition,
org.apache.camel.CamelContext camelContext,
RouteBuilder builder) |
static RouteDefinition |
adviceWith(RouteDefinition definition,
ModelCamelContext 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.Endpoint |
resolveEndpoint(org.apache.camel.CamelContext camelContext,
String uri) |
addInterceptStrategies, addRoutes, configureChild, createChannel, createChildProcessor, createCompositeProcessor, createOutputsProcessor, createOutputsProcessor, createOutputsProcessorImpl, createProcessor, makeProcessor, preCreateProcessor, reifier, wrapChannel, wrapChannel, wrapInErrorHandler, wrapProcessor
public RouteReifier(ProcessorDefinition<?> definition)
public static RouteDefinition adviceWith(RouteDefinition definition, org.apache.camel.CamelContext camelContext, RouteBuilder builder) throws Exception
Exception
public static RouteDefinition adviceWith(RouteDefinition definition, ModelCamelContext 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
- camelContext
- 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 List<org.apache.camel.spi.RouteContext> addRoutes(ModelCamelContext camelContext, Collection<org.apache.camel.Route> routes) throws Exception
Exception
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
Exception
public RouteDefinition adviceWith(ModelCamelContext 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.spi.RouteContext addRoutes(org.apache.camel.CamelContext camelContext, Collection<org.apache.camel.Route> routes, FromDefinition fromType) throws Exception
Exception
Apache Camel