public class BundleInstall extends Object implements BundleOperation
| Constructor and Description |
|---|
BundleInstall(BaseData data,
URLConnection source,
BaseStorage storage) |
| Modifier and Type | Method and Description |
|---|---|
BundleData |
begin()
Begin the operation on the bundle (install, update, uninstall).
|
void |
commit(boolean postpone)
Commit the operation performed.
|
void |
undo()
Undo the change to persistent storage.
|
public BundleInstall(BaseData data, URLConnection source, BaseStorage storage)
public BundleData begin() throws BundleException
begin in interface BundleOperationBundleException - If a failure occured modifiying peristent storage.public void undo()
BundleOperationThis method can be called before calling commit or if commit throws an exception to undo any changes in progress.
undo in interface BundleOperationpublic void commit(boolean postpone)
throws BundleException
BundleOperationcommit in interface BundleOperationpostpone - If true, the bundle's persistent
storage cannot be immediately reclaimed. This may occur if the
bundle is still exporting a package.BundleException - If a failure occured modifiying peristent storage.Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.