The wiki page mentions "Merge pre and post phase". I need the current (CR2)
timing. Specifically, I need the pre callback for nodePassivated. Merging to me implies
"post".
In general though, the annotation idea seems good. The interface approach has proven too
fragile. And I know I've created a lot of little inner classes extending
AbstractCacheListener just so I could implement one callback. That's pretty clunky
when I think about it.
It will be slower, since reflection is involved. We'll probably have to organize
listeners by callback so we can quickly invoke on the relevant ones, rather than iterating
through each listener for every callback to check if it is interested.
I guess the addListener API just takes Object. Odd, but an alternative is to make
CacheListener a marker interface. That's even more odd.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057514#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...