This content has been marked as final.
Show 3 replies
-
1. Re: How to add an asynchronous observer via Event<T> interface?
cash1981 Jul 15, 2009 4:07 PM (in response to federico.dalmaso)I think all you need to do is have a method with
@Observer("myListener") public void method(Object obj)
and then call the method asynchronously:
Events.instance().raiseAsynchronousEvent("myListener", Object obj);
Or you should just annotate the method with @Asynchronous and call the method normally.
-
2. Re: How to add an asynchronous observer via Event<T> interface?
cash1981 Jul 15, 2009 4:08 PM (in response to federico.dalmaso)Sorry, I thought this was a seam question :-(
-
3. Re: How to add an asynchronous observer via Event<T> interface?
pmuir Jul 20, 2009 6:10 PM (in response to federico.dalmaso)Look at the PFD - this stuff has all changed quite substantially - specifically look at AfterBeanDiscovery.addObsever(observerMethodDefinition) - but this is really for third party add ons - for an app, use annotations.