[jbosstools-issues] [JBoss JIRA] (JBIDE-11899) Show a warning when no observer exists to receive an injected event
Cody Lerum (JIRA)
jira-events at lists.jboss.org
Thu May 17 14:59:19 EDT 2012
[ https://issues.jboss.org/browse/JBIDE-11899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12693782#comment-12693782 ]
Cody Lerum edited comment on JBIDE-11899 at 5/17/12 2:58 PM:
-------------------------------------------------------------
I think it is fair to throw a warning if there is no observer to receive the injected event.
This should probably be accompanied by a @SuppressWarning type so that the user can ignore if they intend to use the event like {code}eventLog.select(new NowLiteral()).fire();{code}
was (Author: clerum):
I think it is fair to throw a warning if there is no observer to receive the injected event.
This should probably be accompanied by a @SuppressWarning type so that the user can ignore if they intend to use the event like eventLog.select(new NowLiteral()).fire();
> Show a warning when no observer exists to receive an injected event
> -------------------------------------------------------------------
>
> Key: JBIDE-11899
> URL: https://issues.jboss.org/browse/JBIDE-11899
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: CDI
> Affects Versions: 3.3.0.Beta2
> Reporter: Viacheslav Kabanovich
> Assignee: Viacheslav Kabanovich
> Labels: new_and_noteworthy
> Fix For: 3.4.x
>
>
> With the following event
> {code}
> @Inject
> private Event<EventLog> eventLog;
> {code}
> cannot be delivered to
> {code}
> public void log(@Observes @Now EventLog eventLog) {
> ...
> }
> {code}
> by
> {code}
> eventLog.fire();
> {code}
> Can it be of use to put a warning on field 'eventLog', when the application has no observer to receive it?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list