On 9 Apr 2010, at 10:16, Sven Linstaedt wrote:
According to the java docs, I would also suppose your expression to
be true. Otherwise InjectionPoint#isDelegate() would always return false, making this
method dispensable. The interesting point imho is injecting the InjectionPoint in other
cases than producer methods. I have not seen examples for this usage in the spec.
Sure, but it is required to be supported :-)
The reason you always see it in producer methods as that is where it is interesting (where
you can vary what is to be injected at runtime...)