|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.model.RouteDefinitionHelper
public final class RouteDefinitionHelper
Helper for RouteDefinition
RouteDefinition
before they are added to
CamelContext
.
Method Summary | |
---|---|
static void |
forceAssignIds(CamelContext context,
ProcessorDefinition processor)
Force assigning ids to the give node and all its children (recursively). |
static void |
initParent(ProcessorDefinition parent)
|
static void |
prepareRoute(ModelCamelContext context,
RouteDefinition route)
Prepares the route. |
static void |
prepareRoute(ModelCamelContext context,
RouteDefinition route,
List<OnExceptionDefinition> onExceptions,
List<InterceptDefinition> intercepts,
List<InterceptFromDefinition> interceptFromDefinitions,
List<InterceptSendToEndpointDefinition> interceptSendToEndpointDefinitions,
List<OnCompletionDefinition> onCompletions)
Prepares the route which supports context scoped features such as onException, interceptors and onCompletions This method does not mark the route as prepared afterwards. |
static void |
prepareRouteForInit(RouteDefinition route,
List<ProcessorDefinition<?>> abstracts,
List<ProcessorDefinition<?>> lower)
|
static void |
sanityCheckRoute(RouteDefinition route)
Sanity check the route, that it has input(s) and outputs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void initParent(ProcessorDefinition parent)
public static void prepareRouteForInit(RouteDefinition route, List<ProcessorDefinition<?>> abstracts, List<ProcessorDefinition<?>> lower)
public static void prepareRoute(ModelCamelContext context, RouteDefinition route)
context
- the camel contextroute
- the routepublic static void prepareRoute(ModelCamelContext context, RouteDefinition route, List<OnExceptionDefinition> onExceptions, List<InterceptDefinition> intercepts, List<InterceptFromDefinition> interceptFromDefinitions, List<InterceptSendToEndpointDefinition> interceptSendToEndpointDefinitions, List<OnCompletionDefinition> onCompletions)
context
- the camel contextroute
- the routeonExceptions
- optional list of onExceptionsintercepts
- optional list of interceptorsinterceptFromDefinitions
- optional list of interceptFromsinterceptSendToEndpointDefinitions
- optional list of interceptSendToEndpointsonCompletions
- optional list onCompletionspublic static void sanityCheckRoute(RouteDefinition route)
route
- the route
IllegalArgumentException
- is thrown if the route is invalidpublic static void forceAssignIds(CamelContext context, ProcessorDefinition processor)
context
- the camel contextprocessor
- the node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |