I am trying to use a file filter for my route (as a consumer) and have tried
to get it to inject via guice. I've created a @Provides method and also
attached @JndiBind to it. It still will not get the filter.

Endpoint definition "file://src/test/resources?noop=true&filter=#fileFilter"

Provides method in guice module
        @Provides
        @JndiBind("fileFilter")
        public GenericFileFilter fileFilter(){
                return new TransportFileFilter();
        }

Error message
"Could not find a suitable setter for property: filter as there isn't a
setter method with same type: java.lang.String nor type conversion possible:
No type converter available to convert from type: java.lang.String to the
required type: org.apache.camel.component.file.GenericFileFilter with value
#fileFilter"

Any idea's?
Thanks in advance.


--
View this message in context: 
http://camel.465427.n5.nabble.com/Injecting-file-filter-via-Guice-tp4705927p4705927.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to