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

Split route parsing from the main CamelContext api

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0.RC3
    • Component/s: camel-core-api
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      In order to better separate all xml loading / parsing from the runtime, and in preparation of CAMEL-14053, it would be interesting to remove the two methods that accept an input stream and use JAXB underneath to load routes / rests definitions.

      From a user point-of-view, the work around is quite simple and it's just a matter of calling

       

      RoutesDefinition routes = ModelHelper.loadRoutesDefinition(context, inputStream);
      context.getExtension(Model.class).addRoutesDefinitions(routes.getRoutes());

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gnodet Guillaume Nodet
                Reporter:
                gnodet Guillaume Nodet
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m