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 <claus.ib...@gmail.com> 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 <cwolf.a...@gmail.com> 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: cib...@redhat.com
> Web: http://fusesource.com
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to