# Uses of Interface
org.eclipse.osgi.service.resolver.BundleDescription

Packages that use BundleDescription
Package
Description
org.eclipse.osgi.service.resolver
Provides the Equinox resolver API.

## Uses of BundleDescription in org.eclipse.osgi.service.resolver

Methods in org.eclipse.osgi.service.resolver that return BundleDescription
Modifier and Type
Method
Description
`BundleDescription`
StateObjectFactory.`createBundleDescription(long id, String symbolicName, Version version, String location, BundleSpecification[] required, HostSpecification host, ImportPackageSpecification[] imports, ExportPackageDescription[] exports, boolean singleton, boolean attachFragments, boolean dynamicFragments, String platformFilter, String[] executionEnvironments, GenericSpecification[] genericRequires, GenericDescription[] genericCapabilities)`
Creates a bundle description from the given parameters.
`BundleDescription`
StateObjectFactory.`createBundleDescription(long id, String symbolicName, Version version, String location, BundleSpecification[] required, HostSpecification host, ImportPackageSpecification[] imports, ExportPackageDescription[] exports, boolean singleton, boolean attachFragments, boolean dynamicFragments, String platformFilter, String[] executionEnvironments, GenericSpecification[] genericRequires, GenericDescription[] genericCapabilities, NativeCodeSpecification nativeCode)`
Creates a bundle description from the given parameters.
`BundleDescription`
StateObjectFactory.`createBundleDescription(long id, String symbolicName, Version version, String location, BundleSpecification[] required, HostSpecification host, ImportPackageSpecification[] imports, ExportPackageDescription[] exports, String[] providedPackages, boolean singleton)`
Deprecated.
use `StateObjectFactory.createBundleDescription(long, String, Version, String, BundleSpecification[], HostSpecification, ImportPackageSpecification[], ExportPackageDescription[], boolean, boolean, boolean, String, String[], GenericSpecification[], GenericDescription[])`
`BundleDescription`
StateObjectFactory.`createBundleDescription(long id, String symbolicName, Version version, String location, BundleSpecification[] required, HostSpecification host, ImportPackageSpecification[] imports, ExportPackageDescription[] exports, String[] providedPackages, boolean singleton, boolean attachFragments, boolean dynamicFragments, String platformFilter, String executionEnvironment, GenericSpecification[] genericRequires, GenericDescription[] genericCapabilities)`
Deprecated.
use `StateObjectFactory.createBundleDescription(long, String, Version, String, BundleSpecification[], HostSpecification, ImportPackageSpecification[], ExportPackageDescription[], boolean, boolean, boolean, String, String[], GenericSpecification[], GenericDescription[])`
`BundleDescription`
StateObjectFactory.`createBundleDescription(long id, String symbolicName, Version version, String location, BundleSpecification[] required, HostSpecification host, ImportPackageSpecification[] imports, ExportPackageDescription[] exports, String platformFilter, String[] executionEnvironments, GenericSpecification[] genericRequires, GenericDescription[] genericCapabilities, NativeCodeSpecification nativeCode)`
Creates a bundle description from the given parameters.
`BundleDescription`
StateObjectFactory.`createBundleDescription(long id, BundleDescription original)`
Creates a bundle description that is a copy of the given description.
`BundleDescription`
StateObjectFactory.`createBundleDescription(Dictionary<String,String> manifest, String location, long id)`
Deprecated.
use `StateObjectFactory.createBundleDescription(State, Dictionary, String, long)`
`BundleDescription`
StateObjectFactory.`createBundleDescription(BundleDescription original)`
Creates a bundle description that is a copy of the given description.
`BundleDescription`
StateObjectFactory.`createBundleDescription(State state, Dictionary<String,String> manifest, String location, long id)`
Returns a bundle description based on the information in the supplied manifest dictionary.
`BundleDescription`
StateObjectFactory.StateObjectFactoryProxy.`createBundleDescription(long id, String symbolicName, Version version, String location, BundleSpecification[] required, HostSpecification host, ImportPackageSpecification[] imports, ExportPackageDescription[] exports, boolean singleton, boolean attachFragments, boolean dynamicFragments, String platformFilter, String[] executionEnvironments, GenericSpecification[] genericRequires, GenericDescription[] genericCapabilities)`
`BundleDescription`
StateObjectFactory.StateObjectFactoryProxy.`createBundleDescription(long id, String symbolicName, Version version, String location, BundleSpecification[] required, HostSpecification host, ImportPackageSpecification[] imports, ExportPackageDescription[] exports, boolean singleton, boolean attachFragments, boolean dynamicFragments, String platformFilter, String[] executionEnvironments, GenericSpecification[] genericRequires, GenericDescription[] genericCapabilities, NativeCodeSpecification nativeCode)`
`BundleDescription`
StateObjectFactory.StateObjectFactoryProxy.`createBundleDescription(long id, String symbolicName, Version version, String location, BundleSpecification[] required, HostSpecification host, ImportPackageSpecification[] imports, ExportPackageDescription[] exports, String[] providedPackages, boolean singleton)`
Deprecated.
`BundleDescription`
StateObjectFactory.StateObjectFactoryProxy.`createBundleDescription(long id, String symbolicName, Version version, String location, BundleSpecification[] required, HostSpecification host, ImportPackageSpecification[] imports, ExportPackageDescription[] exports, String[] providedPackages, boolean singleton, boolean attachFragments, boolean dynamicFragments, String platformFilter, String executionEnvironment, GenericSpecification[] genericRequires, GenericDescription[] genericCapabilities)`
Deprecated.
`BundleDescription`
StateObjectFactory.StateObjectFactoryProxy.`createBundleDescription(long id, String symbolicName, Version version, String location, BundleSpecification[] required, HostSpecification host, ImportPackageSpecification[] imports, ExportPackageDescription[] exports, String platformFilter, String[] executionEnvironments, GenericSpecification[] genericRequires, GenericDescription[] genericCapabilities, NativeCodeSpecification nativeCode)`
`BundleDescription`
StateObjectFactory.StateObjectFactoryProxy.`createBundleDescription(long id, BundleDescription original)`
`BundleDescription`
StateObjectFactory.StateObjectFactoryProxy.`createBundleDescription(Dictionary<String,String> manifest, String location, long id)`
Deprecated.
`BundleDescription`
StateObjectFactory.StateObjectFactoryProxy.`createBundleDescription(BundleDescription original)`
`BundleDescription`
StateObjectFactory.StateObjectFactoryProxy.`createBundleDescription(State state, Dictionary<String,String> manifest, String location, long id)`
`BundleDescription`
BundleDelta.`getBundle()`
Returns the BundleDescription that this bundle delta is for.
`BundleDescription`
DisabledInfo.`getBundle()`
Returns the bundle which is disabled
`BundleDescription`
ResolverError.`getBundle()`
Returns the bundle which this ResolverError is for
`BundleDescription`
State.`getBundle(long id)`
Returns the bundle descriptor for the bundle with the given id.
`BundleDescription`
State.`getBundle(String symbolicName, Version version)`
Returns the bundle descriptor for the bundle with the given name and version.
`BundleDescription`
VersionConstraint.`getBundle()`
Returns the bundle that declares this constraint.
`BundleDescription`
State.`getBundleByLocation(String location)`
Returns the bundle descriptor for the bundle with the given location identifier. null is returned if no such bundle is found in this state.
`BundleDescription[]`
State.`getBundles()`
Returns descriptions for all bundles known to this state.
`BundleDescription[]`
State.`getBundles(String symbolicName)`
Returns all bundle descriptions with the given bundle symbolic name.
`BundleDescription`
StateWire.`getCapabilityHost()`
gets the capability host.
`BundleDescription[]`
StateHelper.`getDependentBundles(BundleDescription[] bundles)`
Returns all bundles in the state depending on the given bundles.
`BundleDescription[]`
BundleDescription.`getDependents()`
Returns all bundles which depend on this bundle.
`BundleDescription[]`
State.`getDisabledBundles()`
Returns an array of BundleDescriptions for the bundles that are disabled in the system.
`BundleDescription`
ExportPackageDescription.`getExporter()`
Returns the exporter of this package.
`BundleDescription[]`
BundleDescription.`getFragments()`
Returns all fragments known to this bundle (regardless resolution status).
`BundleDescription[]`
HostSpecification.`getHosts()`
Returns the list of host BundleDescriptions that satisfy this HostSpecification
`BundleDescription[]`
StateHelper.`getPrerequisites(BundleDescription[] bundles)`
Returns all the prerequisite bundles in the state for the given bundles.
`BundleDescription[]`
State.`getRemovalPending()`
Returns descriptions for all bundles in a removal pending state.
`BundleDescription`
StateWire.`getRequirementHost()`
Gets the requirement host.
`BundleDescription[]`
State.`getResolvedBundles()`
Returns descriptions for all bundles currently resolved in this state.
`BundleDescription[]`
BundleDescription.`getResolvedRequires()`
Returns all the bundle descriptions that satisfy all the require bundles for this bundle.
`BundleDescription`
BaseDescription.`getSupplier()`
Returns the bundle which supplies this base description
`BundleDescription`
State.`removeBundle(long bundleId)`
Removes a bundle description with the given bundle id.
Methods in org.eclipse.osgi.service.resolver that return types with arguments of type BundleDescription
Modifier and Type
Method
Description
`Collection<BundleDescription>`
State.`getDependencyClosure(Collection<BundleDescription> bundles)`
Returns the dependency closure for the specified bundles.
Methods in org.eclipse.osgi.service.resolver with parameters of type BundleDescription
Modifier and Type
Method
Description
`boolean`
State.`addBundle(BundleDescription description)`
Adds the given bundle to this state.
`void`
State.`addDynamicImportPackages(BundleDescription importingBundle, ImportPackageSpecification[] dynamicImports)`
Adds the specified dynamic imports to the specified importingBundle.
`void`
State.`addResolverError(BundleDescription bundle, int type, String data, VersionConstraint unsatisfied)`
Adds a new `ResolverError` for the specified bundle.
`void`
Resolver.`bundleAdded(BundleDescription bundle)`
Notifies the resolver a bundle has been added to the state.
`void`
Resolver.`bundleRemoved(BundleDescription bundle, boolean pending)`
Notifies the resolver a bundle has been removed from the state.
`void`
Resolver.`bundleUpdated(BundleDescription newDescription, BundleDescription existingDescription, boolean pending)`
Notifies the resolver a bundle has been updated in the state.
`BundleDescription`
StateObjectFactory.`createBundleDescription(long id, BundleDescription original)`
Creates a bundle description that is a copy of the given description.
`BundleDescription`
StateObjectFactory.`createBundleDescription(BundleDescription original)`
Creates a bundle description that is a copy of the given description.
`BundleDescription`
StateObjectFactory.StateObjectFactoryProxy.`createBundleDescription(long id, BundleDescription original)`
`BundleDescription`
StateObjectFactory.StateObjectFactoryProxy.`createBundleDescription(BundleDescription original)`
`ExportPackageDescription`
StateObjectFactory.`createExportPackageDescription(String packageName, Version version, Map<String,?> directives, Map<String,?> attributes, boolean root, BundleDescription exporter)`
Used by the Resolver to dynamically create ExportPackageDescription objects during the resolution process.
`ExportPackageDescription`
StateObjectFactory.StateObjectFactoryProxy.`createExportPackageDescription(String packageName, Version version, Map<String,?> directives, Map<String,?> attributes, boolean root, BundleDescription exporter)`
`GenericDescription`
StateObjectFactory.`createGenericDescription(String type, Map<String,?> attributes, Map<String,String> directives, BundleDescription supplier)`
Creates a generic description from the given parameters
`GenericDescription`
StateObjectFactory.StateObjectFactoryProxy.`createGenericDescription(String type, Map<String,?> attributes, Map<String,String> directives, BundleDescription supplier)`
`ImportPackageSpecification`
StateObjectFactory.`createImportPackageSpecification(String packageName, VersionRange versionRange, String bundleSymbolicName, VersionRange bundleVersionRange, Map<String,?> directives, Map<String,?> attributes, BundleDescription importer)`
Creates an import package specification from the given parameters.
`ImportPackageSpecification`
StateObjectFactory.StateObjectFactoryProxy.`createImportPackageSpecification(String packageName, VersionRange versionRange, String bundleSymbolicName, VersionRange bundleVersionRange, Map<String,?> directives, Map<String,?> attributes, BundleDescription importer)`
`int`
StateHelper.`getAccessCode(BundleDescription bundle, ExportPackageDescription export)`
Returns the access code that the specified `BundleDescription` has to the specified `ExportPackageDescription`.
`BundleDescription[]`
StateHelper.`getDependentBundles(BundleDescription[] bundles)`
Returns all bundles in the state depending on the given bundles.
`DisabledInfo`
State.`getDisabledInfo(BundleDescription bundle, String policyName)`
Returns the disabled info for the specified bundle with the specified policy name.
`DisabledInfo[]`
State.`getDisabledInfos(BundleDescription bundle)`
Returns an array of disabled info for the specified bundle.
`BundleDescription[]`
StateHelper.`getPrerequisites(BundleDescription[] bundles)`
Returns all the prerequisite bundles in the state for the given bundles.
`ResolverError[]`
State.`getResolverErrors(BundleDescription bundle)`
Returns all `ResolverError`s for the given bundle
`VersionConstraint[]`
StateHelper.`getUnsatisfiedConstraints(BundleDescription bundle)`
Returns all unsatisfied constraints in the given bundle.
`VersionConstraint[]`
StateHelper.`getUnsatisfiedLeaves(BundleDescription[] bundles)`
Returns all unsatisfied constraints in the given bundles that have no possible supplier.
`ExportPackageDescription[]`
StateHelper.`getVisiblePackages(BundleDescription bundle)`
Returns a list of all packages that the specified bundle has access to which are exported by other bundles.
`ExportPackageDescription[]`
StateHelper.`getVisiblePackages(BundleDescription bundle, int options)`
Returns a list of all packages that the specified bundle has access to which are exported by other bundles.
`ExportPackageDescription`
State.`linkDynamicImport(BundleDescription importingBundle, String requestedPackage)`
Attempts to find an ExportPackageDescription that will satisfy a dynamic import for the specified requestedPackage for the specified importingBundle.
`boolean`
State.`removeBundle(BundleDescription bundle)`
Removes the given bundle description.
`void`
State.`removeBundleComplete(BundleDescription bundle)`
Sets the given removal pending bundle to removal complete for this state.
`void`
State.`removeResolverErrors(BundleDescription bundle)`
Removes all `ResolverError`s for the specified bundle.
`void`
Resolver.`resolve(BundleDescription[] discard, Dictionary<Object,Object>[] platformProperties)`
Resolves the state associated with this resolver and returns an array of bundle deltas describing the changes..
`StateDelta`
State.`resolve(BundleDescription[] discard)`
Resolves the constraints contained in this state using the resolver currently associated with the state in an incremental, "least-perturbing" mode, and returns a delta describing the changes in resolved states and dependencies in the state.
`StateDelta`
State.`resolve(BundleDescription[] resolve, boolean discard)`
Resolves the constraints contained in this state using the resolver currently associated with the state in an incremental, "least-perturbing" mode, and returns a delta describing the changes in resolved states and dependencies in the state.
`void`
State.`resolveBundle(BundleDescription bundle, boolean status, BundleDescription[] hosts, ExportPackageDescription[] selectedExports, BundleDescription[] resolvedRequires, ExportPackageDescription[] resolvedImports)`
Deprecated.
use `State.resolveBundle(BundleDescription, boolean, BundleDescription[], ExportPackageDescription[], ExportPackageDescription[], GenericDescription[], BundleDescription[], ExportPackageDescription[], GenericDescription[], Map)`
`void`
State.`resolveBundle(BundleDescription bundle, boolean status, BundleDescription[] hosts, ExportPackageDescription[] selectedExports, ExportPackageDescription[] substitutedExports, BundleDescription[] resolvedRequires, ExportPackageDescription[] resolvedImports)`
Deprecated.
use `State.resolveBundle(BundleDescription, boolean, BundleDescription[], ExportPackageDescription[], ExportPackageDescription[], GenericDescription[], BundleDescription[], ExportPackageDescription[], GenericDescription[], Map)`
`void`
State.`resolveBundle(BundleDescription bundle, boolean status, BundleDescription[] hosts, ExportPackageDescription[] selectedExports, ExportPackageDescription[] substitutedExports, GenericDescription[] selectedCapabilities, BundleDescription[] resolvedRequires, ExportPackageDescription[] resolvedImports, GenericDescription[] resolvedCapabilities, Map<String,List<StateWire>> resolvedWires)`
Sets whether or not the given bundle is selected in this state.
`ExportPackageDescription`
Resolver.`resolveDynamicImport(BundleDescription importingBundle, String requestedPackage)`
Attempts to find an ExportPackageDescription that will satisfy a dynamic import for the specified requestedPackage for the specified importingBundle.
`Object[][]`
StateHelper.`sortBundles(BundleDescription[] toSort)`
Sorts the given array of resolved bundles in pre-requisite order.
`boolean`
State.`updateBundle(BundleDescription newDescription)`
Updates an existing bundle description with the given description.
Method parameters in org.eclipse.osgi.service.resolver with type arguments of type BundleDescription
Modifier and Type
Method
Description
`Collection<BundleDescription>`
State.`getDependencyClosure(Collection<BundleDescription> bundles)`
Returns the dependency closure for the specified bundles.
Constructors in org.eclipse.osgi.service.resolver with parameters of type BundleDescription
Modifier
Constructor
Description
``
`DisabledInfo(String policyName, String message, BundleDescription bundle)`
DisabledInfo constructor.
``
`StateWire(BundleDescription requirementHost, VersionConstraint declaredRequirement, BundleDescription capabilityHost, BaseDescription declaredCapability)`
Constructs a new state wire.