You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Guillaume Nodet (Jira)" <ji...@apache.org> on 2019/10/15 06:40:00 UTC

[jira] [Created] (CAMEL-14066) Split route parsing from the main CamelContext api

Guillaume Nodet created CAMEL-14066:
---------------------------------------

             Summary: Split route parsing from the main CamelContext api
                 Key: CAMEL-14066
                 URL: https://issues.apache.org/jira/browse/CAMEL-14066
             Project: Camel
          Issue Type: Improvement
            Reporter: Guillaume Nodet
            Assignee: Guillaume Nodet
             Fix For: 3.0.0.RC3


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

```

context.addRoutesDefinitions(ModelHelper.loadRoutesDefinition(context, inputStream).getRoutes());

```



--
This message was sent by Atlassian Jira
(v8.3.4#803005)