Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-13141

camel-api - Add API for advising routes

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0.M4, 3.0.0
    • came-core
    • None
    • Unknown

    Description

      We should likely add a nicer API for testing camel routes with the adviceWith functionality. Today you have to use a RouteReifier from camel-core. We should make a new API in camel-api and make it with a nicer name so its easier to understand and use.

              RouteReifier.adviceWith(context.getRouteDefinitions().get(0), context, new RouteBuilder() {
                  @Override
                  public void configure() throws Exception {
                      // intercept sending to mock:foo and do something else
                      interceptSendToEndpoint("mock:foo")
                              .skipSendToOriginalEndpoint()
                              .to("log:foo")
                              .to("mock:advised");
                  }
              });
      

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: