I would tend to read 5.5.7 in the same way ... @Inject @Delegate is an
injection point by itself, unless the spec will say otherwise, so
decorated beans are injected into decorators and so on. I suppose this
assumption has been tacitly (or not so tacitly) added when moving from
@Decorates to @Inject @Delegate.
On 10-04-09 5:56 AM, Pete Muir wrote:
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...)
_______________________________________________
weld-dev mailing list
weld-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-dev