[Inject] meta tags

76 views
Skip to first unread message

Neil Manuell

unread,
Jun 8, 2012, 12:33:06 PM6/8/12
to robo...@googlegroups.com
ok, just noticed that, for example the EventCommandMap doesn't use the [Inject] meta tag on its constructor, yet its dependencies are still met.

did I missing something? :-/ 

Till Schneidereit

unread,
Jun 8, 2012, 12:43:18 PM6/8/12
to robo...@googlegroups.com
[Inject] isn't required for constructors if you don't use named injections.

Look at it this way: The [Inject] tag indicates an injection request,
but the constructor requires all of its arguments to even be able to
construct an instance, making the request implicit.

Neil Manuell

unread,
Jun 8, 2012, 1:01:12 PM6/8/12
to robo...@googlegroups.com
Thanks Til, thats' where my logic had taken me, but I wanted to check.

--
You received this message because you are subscribed to the Google
Groups "Robotlegs" group.
To post to this group, send email to robo...@googlegroups.com
To unsubscribe from this group, send email to
robotlegs+...@googlegroups.com
for support visit http://knowledge.robotlegs.org

Reply all
Reply to author
Forward
0 new messages