[
https://jira.jboss.org/jira/browse/JBSEAM-3833?page=com.atlassian.jira.pl...
]
Wesley Hales updated JBSEAM-3833:
---------------------------------
Assignee: Norman Richards (was: Shane Bryzak)
From my conversation with Pete:
at the moment, if someone does @Observes("foo")
public void observeFoo()
then inside the observeFoo() method, there is no way to know what you observed
if you want to register automatically an observer for each event
then you need to know this
we'll make it so that if the first parameter is
EventContext eventContext
Seam will inject an eventContext into the method parameter, which contains the type and
any payload
Object...
then you take this info, serialize, deserialize
then call Events.instance().raiseEvent(type, payload); in the app.
Be able to find out the Event type in observers
-----------------------------------------------
Key: JBSEAM-3833
URL:
https://jira.jboss.org/jira/browse/JBSEAM-3833
Project: Seam
Issue Type: Feature Request
Components: Core
Reporter: Sanne Grinovero
Assignee: Norman Richards
Fix For: 2.1.2.CR1
To "find out" I mean programmatically.
As the same method could be listening for more Events, it's possible we need actually
to detect all types, not just one, or be sure to be fired once for each event.
This is a requirement for PBR-58
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira