public class SurrogateImpl extends CompositeBase implements SurrogateBundle
companionFramework, PROP_COMPOSITE, PROP_PARENTFRAMEWORK, resolving
context, fragments, LAZY_TRIGGER
bundledata, domain, framework, manifestLocalization, state, statechangeLock, stateChanging
ACTIVE, 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, updateContent
attachFragment, createContext, getBundleLoader, getClassLoader, getContext, getFragments, getLoaderProxy, getRegisteredServices, getResource, getResources, getServicesInUse, load, loadClass, readyToResume, refresh, reload, startWorker, stopWorker, unload
adapt, 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, updateWorkerPrivileged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
update, update
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
compareTo
public SurrogateImpl(BundleData bundledata, Framework framework) throws BundleException
BundleException
protected Framework findCompanionFramework(Framework thisFramework, BundleData thisData)
findCompanionFramework
in class CompositeBase
public BundleContext getCompositeBundleContext()
SurrogateBundle
getCompositeBundleContext
in interface SurrogateBundle
null
is returned if the composite bundle does
not have a valid bundle context.protected Bundle getCompanionBundle()
getCompanionBundle
in class CompositeBase
protected boolean isSurrogate()
isSurrogate
in class CompositeBase
public boolean giveExports(ExportPackageDescription[] matchingExports)
giveExports
in interface CompositeResolveHelper
protected void startHook()
startHook
in class BundleHost
protected void stopHook()
stopHook
in class BundleHost
public void uninstall() throws BundleException
AbstractBundle
This 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.UNINSTALLED
then an IllegalStateException
is thrown.
Bundle.ACTIVE
or Bundle.STARTING
, the bundle
is stopped as described in the AbstractBundle.stop()
method. If AbstractBundle.stop()
throws an exception, a FrameworkEvent
of type
FrameworkEvent.ERROR
is broadcast containing the exception.
BundleEvent
of type BundleEvent.UNINSTALLED
is
broadcast.
Bundle.UNINSTALLED
.
Bundle.UNINSTALLED
}.
Bundle.UNINSTALLED
}.
Bundle.UNINSTALLED
}.
uninstall
in interface Bundle
uninstall
in interface SurrogateBundle
uninstall
in class AbstractBundle
BundleException
- If the uninstall failed.AbstractBundle.stop()
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.