org.apache.felix.deploymentadmin.spi
Class StopBundleCommand

java.lang.Object
  extended by org.apache.felix.deploymentadmin.spi.Command
      extended by org.apache.felix.deploymentadmin.spi.StopBundleCommand

public class StopBundleCommand
extends Command

Command that stops all bundles described in the target deployment package of a deployment session. By spec every single bundle of the target package should be stopped, even if this is not strictly necessary because of bundles being unaffected by an update. To be able to skip the stopping of unaffected bundles the following system property can be defined: org.apache.felix.deploymentadmin.stopunaffectedbundle. If this property has value false (case insensitive) then unaffected bundles will not be stopped, in all other cases the bundles will be stopped according to the OSGi specification.


Constructor Summary
StopBundleCommand()
           
 
Method Summary
 void execute(DeploymentSessionImpl session)
          Executes the command, the specified DeploymentSession can be used to obtain various information about the deployment session which the command is part of.
 
Methods inherited from class org.apache.felix.deploymentadmin.spi.Command
addCommit, addRollback, cancel, commit, isCancelled, rollback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StopBundleCommand

public StopBundleCommand()
Method Detail

execute

public void execute(DeploymentSessionImpl session)
             throws DeploymentException
Description copied from class: Command
Executes the command, the specified DeploymentSession can be used to obtain various information about the deployment session which the command is part of.

Specified by:
execute in class Command
Parameters:
session - The deployment session this command is part of.
Throws:
DeploymentException - Thrown if the command could not successfully execute.


Copyright © 2011 Apache Software Foundation. All Rights Reserved.