org.apache.felix.deploymentadmin.spi
Class StopBundleCommand
java.lang.Object
org.apache.felix.deploymentadmin.spi.Command
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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StopBundleCommand
public StopBundleCommand()
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 © 2013 The Apache Software Foundation. All Rights Reserved.