On Thu, Dec 6, 2012 at 8:46 AM, helmut.at.work <helmut.at.w...@gmail.com> wrote:
> As explained in the thread above, I need a correlation to the route in the
> GenericFileFilter.
> You show me the way to set a property in the  GenericFileFilter class with
> spring.
> For Java DSL I set this property with help of the constructor of the
> GenericFileFilter class.
> The question is: Is there a better way to set the property in the
> GenericFileFilter class with Java DSL?
>

Its Java so you got a zillion ways of doing that. Setting as a
constructor is a good way, because that's how objects gets
initialized.
You can of course leave getter/setters there as well, and use a
setter. Then its similar to Spring XML does it when you use
<bean><property ></bean> style.

And it would be overkill to introduce a Java IoC framework. And I
think even Spring can do this now; though 98%+ (or great majority
IMHO) uses the XML approach.



> Thank you,
> Helmut
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/How-to-get-RouteId-in-a-GenericFileFilter-tp5723631p5723694.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
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