[
https://issues.jboss.org/browse/CDI-14?page=com.atlassian.jira.plugin.sys...
]
Arne Limburg commented on CDI-14:
---------------------------------
We cannot split the BeanManager more than in 1.0, but we can add new methods (like the
method discussed here) somewhere else.
Mark, you can fire an event when you have an Instance<Object>:
{noformat}
Instance<Object> instance = ...
Event<MyEvent> event = instance.select(new TypeLiteral<Event<MyEvent>>()
{}.getType()).get();
event.fire(...);
{noformat}
Since event is a bean, this should work.
Add instance() method to BeanManager
------------------------------------
Key: CDI-14
URL:
https://issues.jboss.org/browse/CDI-14
Project: CDI Specification Issues
Issue Type: Feature Request
Components: Resolution
Affects Versions: 1.0
Reporter: Pete Muir
Fix For: 1.1 (Proposed)
Currently obtaining a contextual reference is quite a complex operation, adding a method
like:
Instance<Object> instance();
would make it much easier.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira