The model is the classes that represent a model of the Camel routes. eg its in fact what you do when you use the DSL eg
<route> <from ...> <to ...> </route> Then its all the classes from the model package that is built together to represent the route. Likewise when you use Java DSL the RouteBuilder does that also. On Sun, May 19, 2013 at 12:07 AM, Chris Wolf <[email protected]> wrote: > So was (is) the root package supposed to be internal and "model" the > ideal external API? > > I'm still not certain of the purpose of the "model" package.... > > Thanks, > > > Chris > > On Sat, May 18, 2013 at 3:33 AM, Claus Ibsen <[email protected]> wrote: >> Hi >> >> Yeah its IMHO a bit unfortunate with the @deprecated on the >> CamelContext. But the point was to use ModelCamelContext as this >> interface is from the model package. Where as CamelContext is from the >> root. >> So with the ModelCamelContext you dont have root -> model in the >> dependency triage. >> >> >> >> >> On Fri, May 17, 2013 at 10:08 PM, Chris Wolf <[email protected]> wrote: >>> In a custom Processor, I am calling CamelContext.addRouteDefinition - >>> but the javadoc says it's deprecated and >>> to use org.apache.camel.model.ModelCamelContex.addRouteDefinition(..) >>> instead. >>> >>> I see that DefaultCamelContext implements ModelCamelContext, so I just >>> cast it like: >>> >>> ModelCamelContext context = (ModelCamelContext)exchange.getContext(); >>> >>> That seems to work too. What is the difference between these two >>> interfaces and the "model" >>> sub-package, in general? (I searched the FAQ and CiA book, but didn't >>> find anything) >>> >>> Thanks, >>> >>> >>> Chris >> >> >> >> -- >> Claus Ibsen >> ----------------- >> www.camelone.org: The open source integration conference. >> >> Red Hat, Inc. >> FuseSource is now part of Red Hat >> Email: [email protected] >> Web: http://fusesource.com >> Twitter: davsclaus >> Blog: http://davsclaus.com >> Author of Camel in Action: http://www.manning.com/ibsen -- Claus Ibsen ----------------- www.camelone.org: The open source integration conference. Red Hat, Inc. FuseSource is now part of Red Hat Email: [email protected] Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
