You can just refer to it in xml too, to setup the IoC in XML

<bean id="foo">

<bean id="myFilter" ..>
   <property name="foo" ref="foo"/>
</bean>



On Fri, Jan 29, 2016 at 5:40 PM, fxthomas <felix.tho...@gmail.com> wrote:
> hello claus,
>
>   How do I get the singleton bean nside my FileFilter java code. I tried
> using the @BeanInject annotation, but it looks like it creates different
> bean object and not using the one I have defined in the XML.
>
> regards,
> Felix T
>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-file-component-URI-dynamic-options-Filter-query-tp5776861p5776996.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to