public class CompositeImpl extends CompositeBase implements CompositeBundle
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPOSITE_CONFIGURATION |
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 |
|---|
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, 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 static String COMPOSITE_CONFIGURATION
public CompositeImpl(BundleData bundledata, Framework framework) throws BundleException
BundleExceptionprotected Framework findCompanionFramework(Framework thisFramework, BundleData thisData) throws BundleException
findCompanionFramework in class CompositeBaseBundleExceptionpublic Framework getCompositeFramework()
CompositeBundlegetCompositeFramework in interface CompositeBundlepublic SurrogateBundle getSurrogateBundle()
CompositeBundlegetSurrogateBundle in interface CompositeBundleprotected Bundle getCompanionBundle()
getCompanionBundle in class CompositeBasepublic void update(Map compositeManifest) throws BundleException
CompositeBundleSimilar 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 CompositeBundlecompositeManifest - the new composite manifest.BundleException - If the update fails.CompositeBundleFactory.installCompositeBundle(Map, String, Map)public 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 CompositeBundleuninstall in class AbstractBundleBundleException - If the uninstall failed.AbstractBundle.stop()protected void startHook()
throws BundleException
startHook in class BundleHostBundleExceptionprotected void stopHook()
throws BundleException
stopHook in class BundleHostBundleExceptionpublic void started(CompositeModule surrogate)
started in interface CompositeModulestarted in class CompositeBasepublic void stopped(CompositeModule surrogate)
stopped in interface CompositeModulestopped in class CompositeBasepublic boolean giveExports(ExportPackageDescription[] matchingExports)
giveExports in interface CompositeResolveHelperCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.