Folks,

here is an update on AS7-2777

I added deployment operations start/stop and the ability in the DeploymentPlanBuilder to say

    andDeploy().andNoStart()

Following the INSTALL phase there is a new ACTIVATE phase. When the 'deploy' operation is marked with StartPolicy.DEFERRED the DeploymentPhaseService for ACTIVATE is created with initial Mode.NEVER, which causes no execution of DUPs in ACTIVATE and beyond.

The 'start' operation, triggers continuation of DUP execution by setting the DeploymentPhaseService for ACTIVATE to Mode.ACTIVE.

The 'stop' operation sets the DeploymentPhaseService for ACTIVATE to Mode.NEVER

In this way start/stop can be called repeatedly

Test coverage in

    [tdiesler@tdvaio smoke]$ mvn -Dtest=StandaloneDeploymentTestCase install

    Running org.jboss.as.test.smoke.osgi.StandaloneDeploymentTestCase
    Tests run: 12, Failures: 0, Errors: 0, Skipped: 3, Time elapsed: 20.721 sec

https://github.com/tdiesler/jboss-as/tree/as2777

cheers
-thomas
-- 
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
JBoss OSGi Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx