Java Code Examples for org.apache.camel.model.RoutesDefinition#setRoutes()

The following examples show how to use org.apache.camel.model.RoutesDefinition#setRoutes() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: XmlModel.java    From fabric8-forge with Apache License 2.0 5 votes vote down vote up
/**
 * Returns the root element to be marshalled as XML
 *
 * @return
 */
public Object marshalRootElement() {
    if (justRoutes) {
        RoutesDefinition routes = new RoutesDefinition();
        routes.setRoutes(contextElement.getRoutes());
        return routes;
    } else {
        return contextElement;
    }
}
 
Example 2
Source File: IntegrationTestSupport.java    From syndesis with Apache License 2.0 4 votes vote down vote up
protected void dumpRoutes(ModelCamelContext context) {
    RoutesDefinition definition = new RoutesDefinition();
    definition.setRoutes(context.adapt(ModelCamelContext.class).getRouteDefinitions());

    dumpRoutes(context, definition);
}
 
Example 3
Source File: IntegrationTestSupport.java    From syndesis with Apache License 2.0 4 votes vote down vote up
public static void dumpRoutes(ModelCamelContext context) {
    RoutesDefinition definition = new RoutesDefinition();
    definition.setRoutes(context.getRouteDefinitions());

    dumpRoutes(context, definition);
}