A working implementation of cross context CDI events. In this implementation the way original CDI events work is preserved.
There are 2 cdi events -
1. Normal CDI events which work in the same way as any CDI event would (in a single web app) and they require no extra configuration
2. Cross Context CDI events which could be used to send to communicate between two web apps. In order to use them, user have to annotate the event definition and the observer with @CrossContext annotation which is available in Portlet API.
Note that - Neither normal CDI event could be detected by a cross-context observer nor cross-context event could be detected by normal CDI observer. Both requires their own specific observers which is the main reason we came up with this implementation.
19 files changed