On Sat, Dec 27, 2008 at 10:39 AM, Rickard Öberg <[email protected]> wrote:
> Niclas Hedhman wrote:
>> private @Uses( optional=true ) Def def;
> Alright, seems to make sense. If you absolutely want it to be there
> you'd simply remove optional=true anyway. Go for it.
It is done.
The fix was really easy. In
UsesInjectionProviderFactory.provideInjection(), there is an
if-statement
if( usesObject == null )
which was simply changed to
if( usesObject == null && !dependency.optional() )
Cheers
Niclas
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev