[jboss-dev-forums] [Design of JBossCache] - Re: Need to make enhacements to CacheListener API
manik.surtani@jboss.com
do-not-reply at jboss.com
Fri Jun 15 11:48:10 EDT 2007
Ok, so now we're at CR2. Not the time to be changing APIs, but I understand that if we need it we need it. The callbacks in consideration are block/unblock/startTx/endTx, right?
I like Jason's approach to using annotations rather than the interface methods - makes things easier for people who don't want to implement everything.
What do people think? Can/should we:
1) Live with the current API
2) Add to the existing interface
3) Switch to an annotation based approach
4) Do both 2 and 3, providing users with both ways of implementing listeners?
I think if we can live with (1) I suggest we do that. Failing that, I'd go with (3), since we'd be breaking compat with CR2 anyway. Then (2) and finally (4) which I think doesn't add much value.
I'd like to do this for CR3, and will hold back CR3 until we have a clear decision on this.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054818#4054818
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054818
More information about the jboss-dev-forums
mailing list