[
https://issues.jboss.org/browse/CDI-633?page=com.atlassian.jira.plugin.sy...
]
Sven Linstaedt commented on CDI-633:
------------------------------------
To be a more concrete: I tried to write a meta-extension allowing "binding" of
beans by (e.g. like in "interceptor binding") firing custom events during
container initialization, similar to {{ProcessAnnotatedType<T>}}, that may be
handled by other extensions. The type parameter {{T}} is not known statically, but rather
reflectively as {{java.lang.reflect.Type}}. So even being able to retrieve an
{{Event<T>}} before {{AfterDeploymentValidation }} does not help in this case, as
{{Event<T>}} was meant for use with a concrete type parameter {{T}} either via
{{Class}} or {{TypeLiteral}}.
This proposal does not supersedes it's linked duplicates imho.
Intoroduce BeanManager.event()
------------------------------
Key: CDI-633
URL:
https://issues.jboss.org/browse/CDI-633
Project: CDI Specification Issues
Issue Type: Feature Request
Reporter: Martin Kouba
Fix For: 2.0 .Final
* this would allow to define the _specified type_ - the container may use the specified
type to infer the parameterized type of the event types
* the method should return {{javax.enterprise.event.Event<Object>}} with no
qualifiers
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)