|
||||||||||
| 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(java.io.InputStream input)
Deprecated. This operation is not supported for surrogate bundles. |
| Methods inherited from interface org.osgi.framework.Bundle |
|---|
findEntries, getBundleContext, getBundleId, getEntry, getEntryPaths, getHeaders, getHeaders, getLastModified, getLocation, getRegisteredServices, getResource, getResources, getServicesInUse, getSignerCertificates, getState, getSymbolicName, getVersion, hasPermission, loadClass, start, start, stop, stop |
| 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 the update fails.Bundle.update(InputStream)
void update(java.io.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 the input stream cannot be read or the update
fails.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.Bundle.stop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||