In the light of
https://jira.jboss.org/jira/browse/ISPN-369, VisitableCommand has been
refactored to gain a shouldInvoke() method. This allows invokers to check whether the
command should be invoked before passing the command up the interceptor stack, acquiring
and holding locks, etc.
I have updated all command implementations in trunk accordingly, this is just an FYI to
anyone who may be considering implementing more commands.
Cheers
Manik
--
Manik Surtani
manik(a)jboss.org
Lead, Infinispan
Lead, JBoss Cache
http://www.infinispan.org
http://www.jbosscache.org