public class CompositeImpl extends CompositeBase implements CompositeBundle
Modifier and Type | Field and Description |
---|---|
static String |
COMPOSITE_CONFIGURATION |
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 |
---|
CompositeImpl(BundleData bundledata,
Framework framework) |
Modifier and Type | Method and Description |
---|---|
protected Framework |
findCompanionFramework(Framework thisFramework,
BundleData thisData) |
protected Bundle |
getCompanionBundle() |
Framework |
getCompositeFramework()
Returns the child framework associated with this composite bundle.
|
SurrogateBundle |
getSurrogateBundle()
Returns the surrogate bundle associated with this composite bundle.
|
boolean |
giveExports(ExportPackageDescription[] matchingExports) |
void |
started(CompositeModule surrogate) |
protected void |
startHook() |
protected void |
stopHook() |
void |
stopped(CompositeModule surrogate) |
void |
uninstall()
Uninstall this bundle.
|
void |
update(Map compositeManifest)
Updates this composite bundle with the specified manifest.
|
getCompositeDescription, getDelegate, isSurrogate, refreshContent, resolveContent, 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 static String COMPOSITE_CONFIGURATION
public CompositeImpl(BundleData bundledata, Framework framework) throws BundleException
BundleException
protected Framework findCompanionFramework(Framework thisFramework, BundleData thisData) throws BundleException
findCompanionFramework
in class CompositeBase
BundleException
public Framework getCompositeFramework()
CompositeBundle
getCompositeFramework
in interface CompositeBundle
public SurrogateBundle getSurrogateBundle()
CompositeBundle
getSurrogateBundle
in interface CompositeBundle
protected Bundle getCompanionBundle()
getCompanionBundle
in class CompositeBase
public void update(Map compositeManifest) throws BundleException
CompositeBundle
Similar to normal bundle updates, the packages exported by a composite or surrogate bundle can not change as a result of calling update: the previous package exports must be available to other consuming bundles (in either the parent or child framework) until the PackageAdmin.refreshPackages method has been called to refresh the composite, or the parent Framework is re-launched.
update
in interface CompositeBundle
compositeManifest
- the new composite manifest.BundleException
- If the update fails.CompositeBundleFactory.installCompositeBundle(Map, String, Map)
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 CompositeBundle
uninstall
in class AbstractBundle
BundleException
- If the uninstall failed.AbstractBundle.stop()
protected void startHook() throws BundleException
startHook
in class BundleHost
BundleException
protected void stopHook() throws BundleException
stopHook
in class BundleHost
BundleException
public void started(CompositeModule surrogate)
started
in interface CompositeModule
started
in class CompositeBase
public void stopped(CompositeModule surrogate)
stopped
in interface CompositeModule
stopped
in class CompositeBase
public boolean giveExports(ExportPackageDescription[] matchingExports)
giveExports
in interface CompositeResolveHelper
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.