Class EndpointRouteBuilder

    • Constructor Detail

      • EndpointRouteBuilder

        public EndpointRouteBuilder()
      • EndpointRouteBuilder

        public EndpointRouteBuilder​(org.apache.camel.CamelContext context)
    • Method Detail

      • addEndpointRoutes

        public static void addEndpointRoutes​(org.apache.camel.CamelContext context,
                                             org.apache.camel.util.function.ThrowingConsumer<EndpointRouteBuilder,​Exception> rbc)
                                      throws Exception
        Add routes to a context using a lambda expression. It can be used as following:
         RouteBuilder.addRoutes(context, rb ->
             rb.from("direct:inbound").bean(ProduceTemplateBean.class)));
         
        Parameters:
        context - the camel context to add routes
        rbc - a lambda expression receiving the RouteBuilder to use for creating routes
        Throws:
        Exception - if an error occurs