|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SurrogateBundle
A surrogate bundle is installed in a child framework, and is the child-facing representation of the composite bundle in the parent framework.
A surrogate bundle does the following as specified by the composite manifest:
CompositeBundle| Field Summary |
|---|
| Fields inherited from interface org.osgi.framework.Bundle |
|---|
ACTIVE, INSTALLED, RESOLVED, SIGNERS_ALL, SIGNERS_TRUSTED, START_ACTIVATION_POLICY, START_TRANSIENT, STARTING, STOP_TRANSIENT, STOPPING, UNINSTALLED |
| Method Summary | |
|---|---|
BundleContext |
getCompositeBundleContext()
Deprecated. Returns the bundle context of the associated composite bundle. |
void |
uninstall()
Deprecated. This operation is not supported for surrogate bundles. |
void |
update()
Deprecated. This operation is not supported for surrogate bundles. |
void |
update(InputStream input)
Deprecated. This operation is not supported for surrogate bundles. |
| Methods inherited from interface org.osgi.framework.Bundle |
|---|
adapt, findEntries, getBundleContext, getBundleId, getDataFile, getEntry, getEntryPaths, getHeaders, getHeaders, getLastModified, getLocation, getRegisteredServices, getResource, getResources, getServicesInUse, getSignerCertificates, getState, getSymbolicName, getVersion, hasPermission, loadClass, start, start, stop, stop |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
BundleContext getCompositeBundleContext()
null is returned if the composite bundle does
not have a valid bundle context.
void update()
throws BundleException
BundleException of type
invalid operation must be
thrown.
update in interface BundleBundleException - If this bundle could not be updated.
BundleException types thrown by this method include:
BundleException.READ_ERROR,
BundleException.DUPLICATE_BUNDLE_ERROR,
BundleException.MANIFEST_ERROR,
BundleException.NATIVECODE_ERROR,
BundleException.RESOLVE_ERROR,
BundleException.STATECHANGE_ERROR, and
BundleException.ACTIVATOR_ERROR.Bundle.update(InputStream)
void update(InputStream input)
throws BundleException
BundleException of type
invalid operation must be
thrown.
update in interface Bundleinput - The InputStream from which to read the new bundle or
null to indicate the Framework must create the input
stream from this bundle's Bundle-UpdateLocation Manifest header, if present, or this
bundle's original location. The input stream must always be closed
when this method completes, even if an exception is thrown.
BundleException - If this bundle could not be updated.
BundleException types thrown by this method include:
BundleException.READ_ERROR,
BundleException.DUPLICATE_BUNDLE_ERROR,
BundleException.MANIFEST_ERROR,
BundleException.NATIVECODE_ERROR,
BundleException.RESOLVE_ERROR,
BundleException.STATECHANGE_ERROR, and
BundleException.ACTIVATOR_ERROR.Bundle.stop(),
Bundle.start()
void uninstall()
throws BundleException
BundleException of type
invalid operation must be
thrown.
uninstall in interface BundleBundleException - If the uninstall failed. This can occur if
another thread is attempting to change this bundle's state and
does not complete in a timely manner. BundleException types
thrown by this method include:
BundleException.STATECHANGE_ERRORBundle.stop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||