public class RouteReifier extends ProcessorReifier<RouteDefinition>
definition, logcamelContext, route| Constructor and Description |
|---|
RouteReifier(org.apache.camel.CamelContext camelContext,
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.
|
protected Map<String,Object> |
computeRouteProperties() |
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() |
addRoutes, clearReifiers, configureChild, createChildProcessor, createCompositeProcessor, createOutputsProcessor, createOutputsProcessor, createProcessor, getConfiguredExecutorService, getConfiguredScheduledExecutorService, getId, hasOutputs, lookupExecutorServiceRef, lookupScheduledExecutorServiceRef, makeProcessor, preCreateProcessor, registerReifier, reifier, willCreateNewThreadPool, wrapChannel, wrapChannel, wrapInErrorHandler, wrapProcessorasRef, createExpression, createExpression, createPredicate, createPredicate, findByType, findByTypeWithName, findSingleByType, getRegistry, lookup, lookupByName, lookupByNameAndType, mandatoryLookup, or, parse, parse, parseBoolean, parseBoolean, parseDuration, parseDuration, parseFloat, parseFloat, parseInt, parseInt, parseLong, parseLong, parseString, resolveEndpoint, unwrappublic 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 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() throws Exception
Exceptionprotected Map<String,Object> computeRouteProperties()
Apache Camel