public class SurrogateImpl extends CompositeBase implements SurrogateBundle
companionFramework, PROP_COMPOSITE, PROP_PARENTFRAMEWORK, resolvingcontext, fragments, LAZY_TRIGGERbundledata, domain, framework, manifestLocalization, state, statechangeLock, stateChangingACTIVE, INSTALLED, RESOLVED, SIGNERS_ALL, SIGNERS_TRUSTED, START_ACTIVATION_POLICY, START_TRANSIENT, STARTING, STOP_TRANSIENT, STOPPING, UNINSTALLED| Constructor and Description |
|---|
SurrogateImpl(BundleData bundledata,
Framework framework) |
| Modifier and Type | Method and Description |
|---|---|
protected Framework |
findCompanionFramework(Framework thisFramework,
BundleData thisData) |
protected Bundle |
getCompanionBundle() |
BundleContext |
getCompositeBundleContext()
Returns the bundle context of the associated composite bundle.
|
boolean |
giveExports(ExportPackageDescription[] matchingExports) |
protected boolean |
isSurrogate() |
protected void |
startHook() |
protected void |
stopHook() |
void |
uninstall()
Uninstall this bundle.
|
getCompositeDescription, getDelegate, refreshContent, resolveContent, started, stopped, update, update, updateContentattachFragment, createContext, getBundleLoader, getClassLoader, getContext, getFragments, getLoaderProxy, getRegisteredServices, getResource, getResources, getServicesInUse, load, loadClass, readyToResume, refresh, reload, startWorker, stopWorker, unloadadapt, adapt0, beginStateChange, checkValid, close, compare, compareTo, completeStateChange, createBundle, findEntries, getBundle, getBundleContext, getBundleData, getBundleDescription, getBundleId, getDataFile, getEntry, getEntryPaths, getFramework, getHeaders, getHeaders, getKey, getKeyHashCode, getLastModified, getLocation, getProtectionDomain, getResolutionFailureException, getResourceBundle, getRevisions, getSignerCertificates, getStartLevel, getState, getStateChanging, getSymbolicName, getVersion, hasPermission, isActivationPolicyUsed, isActive, isFragment, isPersistentlyStarted, isResolved, loadBundleActivator, loadClass, resolve, resume, setStartLevel, setStatus, start, start, stop, stop, suspend, testStateChanging, toString, uninstallWorker, uninstallWorkerPrivileged, updateWorker, updateWorkerPrivilegedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitupdate, updateadapt, findEntries, getBundleContext, getBundleId, getDataFile, getEntry, getEntryPaths, getHeaders, getHeaders, getLastModified, getLocation, getRegisteredServices, getResource, getResources, getServicesInUse, getSignerCertificates, getState, getSymbolicName, getVersion, hasPermission, loadClass, start, start, stop, stopcompareTopublic SurrogateImpl(BundleData bundledata, Framework framework) throws BundleException
BundleExceptionprotected Framework findCompanionFramework(Framework thisFramework, BundleData thisData)
findCompanionFramework in class CompositeBasepublic BundleContext getCompositeBundleContext()
SurrogateBundlegetCompositeBundleContext in interface SurrogateBundlenull is returned if the composite bundle does
not have a valid bundle context.protected Bundle getCompanionBundle()
getCompanionBundle in class CompositeBaseprotected boolean isSurrogate()
isSurrogate in class CompositeBasepublic boolean giveExports(ExportPackageDescription[] matchingExports)
giveExports in interface CompositeResolveHelperprotected void startHook()
startHook in class BundleHostprotected void stopHook()
stopHook in class BundleHostpublic void uninstall()
throws BundleException
AbstractBundleThis method removes all traces of the bundle, including any data in the persistent storage area provided for the bundle by the framework.
The following steps are followed to uninstall a bundle:
Bundle.UNINSTALLEDthen an IllegalStateException
is thrown.
Bundle.ACTIVEor Bundle.STARTING, the bundle
is stopped as described in the AbstractBundle.stop()method. If AbstractBundle.stop()
throws an exception, a FrameworkEventof type
FrameworkEvent.ERRORis broadcast containing the exception.
BundleEventof type BundleEvent.UNINSTALLEDis
broadcast.
Bundle.UNINSTALLED.
Bundle.UNINSTALLED}.
Bundle.UNINSTALLED}.
Bundle.UNINSTALLED}.
uninstall in interface Bundleuninstall in interface SurrogateBundleuninstall in class AbstractBundleBundleException - If the uninstall failed.AbstractBundle.stop()Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.