Re: PropertyInject defaultValue doesn't work with zero-length string

2017-11-07 Thread Claus Ibsen
Hi No as the annotation requires a value and thus "" is like not in use. We would need to add a new attribute required boolean true|false so you can set it to required = false. You are welcome to log a JIRA and work on a github PR if you fancy On Tue, Nov 7, 2017 at 4:28 PM, Steve Huston wrote:

PropertyInject defaultValue doesn't work with zero-length string

2017-11-07 Thread Steve Huston
I am using Camel 2.19.1 and have a question on @PropertyInject with a default value. I have the following: public class MyStuff { @PropertyInject(value="testVal", defaultValue="") private String testVal; ... } When this class is instantiated and injected, if there is no 'testVal" in pro