public interface SurrogateBundle extends Bundle
A surrogate bundle does the following as specified by the composite manifest:
CompositeBundleACTIVE, INSTALLED, RESOLVED, SIGNERS_ALL, SIGNERS_TRUSTED, START_ACTIVATION_POLICY, START_TRANSIENT, STARTING, STOP_TRANSIENT, STOPPING, UNINSTALLED| Modifier and Type | Method and Description |
|---|---|
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.
|
adapt, findEntries, getBundleContext, getBundleId, getDataFile, getEntry, getEntryPaths, getHeaders, getHeaders, getLastModified, getLocation, getRegisteredServices, getResource, getResources, getServicesInUse, getSignerCertificates, getState, getSymbolicName, getVersion, hasPermission, loadClass, start, start, stop, stopcompareToBundleContext 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()Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.