OSGI_EE_NAMESPACE, PROPS
Constructor and Description |
---|
UserState() |
Modifier and Type | Method and Description |
---|---|
StateDelta |
compare(State baseState)
Returns a delta describing the differences between this state and the
given state.
|
boolean |
removeBundle(BundleDescription description)
Removes the given bundle description.
|
boolean |
updateBundle(BundleDescription newDescription)
Updates an existing bundle description with the given description.
|
addBundle, addDisabledInfo, addDynamicImportPackages, addResolverError, dynamicCacheChanged, fullyLoad, getBundle, getBundle, getBundleByLocation, getBundles, getBundles, getChanges, getDependencyClosure, getDisabledBundles, getDisabledInfo, getDisabledInfos, getExportedPackages, getFactory, getHighestBundleId, getPlatformProperties, getRemovalPending, getResolvedBundles, getResolver, getResolverErrors, getResolverHook, getStateHelper, getSystemBundle, getSystemPackages, getTimeStamp, isEmpty, isResolved, linkDynamicImport, removeBundle, removeBundleComplete, removeDisabledInfo, removeResolverErrors, resolve, resolve, resolve, resolve, resolveBundle, resolveBundle, resolveBundle, resolveConstraint, setNativePathsInvalid, setOverrides, setPlatformProperties, setPlatformProperties, setResolver, setResolverHookFactory, setTimeStamp, unloadLazyData
public boolean removeBundle(BundleDescription description)
State
removeBundle
in interface State
removeBundle
in class StateImpl
description
- the bundle description to be removedtrue
, if if the bundle description was removed,
false
otherwisepublic boolean updateBundle(BundleDescription newDescription)
State
updateBundle
in interface State
updateBundle
in class StateImpl
newDescription
- the bundle description to replace an existing onetrue
, if if the bundle description was updated,
false
otherwisepublic StateDelta compare(State baseState) throws BundleException
State
Note that the generated StateDelta will contain BundleDeltas with one of the following types: BundleDelta.ADDED, BundleDelta.REMOVED and BundleDelta.UPDATED
baseState
- the base stateBundleException
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.