There is a discussion over in DeltaSpike whether an injection point
@Inject
private JsfMessage<SomeMessageClass>;
with a producer method
@Produces @Dependent JsfMessage createMessage(InjectionPoint ip)
5.2 imo only defines the other way around. Having a raw type at the injection point and a parameterized producer method.
We should define how this is intended to work.
Please note that the producer above works in all existing containers so far but not in Weld2-beta1.
Here is the link to the DS issue: https://issues.apache.org/jira/browse/DELTASPIKE-295