-
1. Re: Conditional Observer and different scopes
alesj Nov 3, 2012 9:31 AM (in response to riboriori)You;ll need to provide more info; e.g. some code would be nice.
If the events + observers match, then observers should be invoked.
-
2. Re: Conditional Observer and different scopes
jharting Nov 3, 2012 3:54 PM (in response to riboriori)Is there an active context for the custom scope at the time you fire the event? Is there at the same time an already-existing instance of the BeanB? If you use a non-conditional observer method, would that be invoked?
-
3. Re: Conditional Observer and different scopes
riboriori Nov 4, 2012 5:31 AM (in response to jharting)Yes, i've debugged ObserverMethodImpl and BeanManagerImpl, and my custom context seems to be active. The bean should observers the event when i use conditional observer, already exists in my custom context, but never intercept the event. If i swith to ALWAYS (non condtional observer), the observer can listen the event, but it see another instance of the bean which declare the observer.
-
4. Re: Conditional Observer and different scopes
jharting Nov 5, 2012 5:33 AM (in response to riboriori)Would you be able to provide a testcase for this?