camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From darkAR <>
Subject Injecting "file:" filter via Guice
Date Tue, 16 Aug 2011 21:42:25 GMT
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
	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

Any idea's?
Thanks in advance.

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message