Related to: http://jira.jboss.com/jira/browse/JBAS-3118
I refactored Andy's initial changes to come up with a hopefully clearer API, that deals with all combinations (not just redeployments) still does want Andy needs:
/** * Temporarily ignore changes (addition, updates, removal) to a particular * deployment, identified by its deployment URL. The deployment URL is different * from the 'base' URLs that are scanned by the scanner (e.g. the full path to * deploy/jmx-console.war vs. deploy/). This can be used to avoid an attempt * by the scanner to deploy/redeploy/undeploy a URL that is being modified. * * To re-enable scanning of changes for a URL, use resumeDeployment(URL, boolean). */ void suspendDeployment(URL url); /** * Re-enables scanning of a particular deployment URL, previously suspended * using suspendDeployment(URL). If the markUpToDate flag is true then the * deployment module will be considered up-to-date during the next scan. * If the flag is false, at the next scan the scanner will check the * modification date to decide if the module needs deploy/redeploy/undeploy. */ void resumeDeployment(URL url, boolean markUpToDate);