org.eclipse.osgi.internal.baseadaptor
Class BundleUpdate

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

public class BundleUpdate
extends java.lang.Object
implements BundleOperation


Constructor Summary
BundleUpdate(BaseData data, java.net.URLConnection source, BaseStorage storage)
           
 
Method Summary
 BundleData begin()
          Perform the change to persistent storage.
 void commit(boolean postpone)
          Commit the change to persistent storage.
 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

BundleUpdate

public BundleUpdate(BaseData data,
                    java.net.URLConnection source,
                    BaseStorage storage)
Method Detail

begin

public BundleData begin()
                 throws BundleException
Perform the change to persistent storage.

Specified by:
begin in interface BundleOperation
Returns:
Bundle object for the target bundle.
Throws:
BundleException - if an error occurs

commit

public void commit(boolean postpone)
            throws BundleException
Commit the change to persistent storage.

Specified by:
commit in interface BundleOperation
Parameters:
postpone - If true, the bundle's persistent storage cannot be immediately reclaimed.
Throws:
BundleException - If a failure occured modifiying peristent storage.

undo

public void undo()
          throws BundleException
Undo the change to persistent storage.

Specified by:
undo in interface BundleOperation
Throws:
BundleException - If a failure occured modifiying peristent storage.


Copyright © 2007-2012 FuseSource, Corp.. All Rights Reserved.