|
Service Management Framework Release 3.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Bundle Storage interface for managing a persistent storage life cycle operation upon a bundle.
This class is used to provide methods to manage a life cycle operation on a bundle in persistent storage. BundleStorage objects are returned by the Platform object and are called by SMF to complete the persistent storage life cycle operation.
For example
Bundle bundle; BundleStorage storage = platform.installBundle(location, source); try { bundle = storage.modify(); // Perform some implementation specific work // which may fail. storage.commit(false); // bundle has been successfully installed } catch (BundleException e) { storage.undo(); throw e; // rethrow the error } return bundle;
Method Summary | |
void |
commit(boolean postpone)
Commit the change to persistent storage. |
org.osgi.framework.Bundle |
modify()
Perform the change to persistent storage. |
void |
undo()
Undo the change to persistent storage. |
Method Detail |
public org.osgi.framework.Bundle modify() throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
- If a failure occured modifiying peristent storage.public void commit(boolean postpone) throws org.osgi.framework.BundleException
postpone
- If true, the bundle's persistent
storage cannot be immediately reclaimed. This may occur if the
bundle is still exporting a package.org.osgi.framework.BundleException
- If a failure occured modifiying peristent storage.public void undo() throws org.osgi.framework.BundleException
This method can be called before calling commit or if commit throws an exception to undo any changes in progress.
org.osgi.framework.BundleException
- If a failure occured modifiying peristent storage.
|
Service Management Framework Release 3.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |