org.eclipse.osgi.internal.baseadaptor
Class BundleInstall

java.lang.Object
  extended by org.eclipse.osgi.internal.baseadaptor.BundleInstall
All Implemented Interfaces:
BundleOperation

public class BundleInstall
extends Object
implements BundleOperation


Constructor Summary
BundleInstall(BaseData data, URLConnection source, BaseStorage storage)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundleInstall

public BundleInstall(BaseData data,
                     URLConnection source,
                     BaseStorage storage)
Method Detail

begin

public BundleData begin()
                 throws BundleException
Begin the operation on the bundle (install, update, uninstall).

Specified by:
begin in interface BundleOperation
Returns:
BundleData object for the target bundle.
Throws:
BundleException - If a failure occured modifiying peristent storage.

undo

public void undo()
Description copied from interface: BundleOperation
Undo the change to persistent storage.

This method can be called before calling commit or if commit throws an exception to undo any changes in progress.

Specified by:
undo in interface BundleOperation

commit

public void commit(boolean postpone)
            throws BundleException
Description copied from interface: BundleOperation
Commit the operation performed.

Specified by:
commit in interface BundleOperation
Parameters:
postpone - If true, the bundle's persistent storage cannot be immediately reclaimed. This may occur if the bundle is still exporting a package.
Throws:
BundleException - If a failure occured modifiying peristent storage.


Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.