Interface RoutesBuilder


public interface RoutesBuilder
A routes builder is capable of building routes using the builder and model classes.

Eventually the routes are added to a CamelContext where they run inside. This interface is not intended to be used by Camel end users. Instead, Camel users will use org.apache.camel.builder.RouteBuilder to build routes in Java DSL.

  • Method Details

    • addRoutesToCamelContext

      void addRoutesToCamelContext(CamelContext context) throws Exception
      Adds the routes from this Route Builder to the CamelContext.
      Parameters:
      context - the Camel context
      Throws:
      Exception - is thrown if initialization of routes failed
    • addTemplatedRoutesToCamelContext

      void addTemplatedRoutesToCamelContext(CamelContext context) throws Exception
      Adds the templated routes from this Route Builder to the CamelContext.
      Parameters:
      context - the Camel context
      Throws:
      Exception - is thrown if initialization of routes failed
    • updateRoutesToCamelContext

      Set<String> updateRoutesToCamelContext(CamelContext context) throws Exception
      Adds or updates the routes from this Route Builder to the CamelContext.
      Parameters:
      context - the Camel context
      Returns:
      route ids for the routes that was updated
      Throws:
      Exception - is thrown if initialization of routes failed