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 BundleOperation
BundleException
- If a failure occured modifiying peristent storage.public void undo()
BundleOperation
This method can be called before calling commit or if commit throws an exception to undo any changes in progress.
undo
in interface BundleOperation
public void commit(boolean postpone) throws BundleException
BundleOperation
commit
in interface BundleOperation
postpone
- 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–2018 The Apache Software Foundation. All rights reserved.