Niclas Hedhman wrote: > Rickard, > > At the moment, if I have; > > private @Uses Def def; > > the Qi4j runtime will 'automagically' try to create an instance of Def > (if it is visible) and the creator is not providing a use() clause in > the builder. Perhaps such automagic is desirable to minimize > construction complexity. > > But, if I have > > private @Uses( optional=true ) Def def; > > then I would argue that it is wrong that it tries to create it > automagically, since it explicitly says that it is Ok if no instance > is provided. > > I will post a issue on this, and try to fix the code accordingly. Yell > 'soonish' if you disagree.
Alright, seems to make sense. If you absolutely want it to be there you'd simply remove optional=true anyway. Go for it. /Rickard _______________________________________________ qi4j-dev mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/qi4j-dev

