public interface BundleDescription extends BaseDescription, BundleRevision
This interface is not intended to be implemented by clients. The
StateObjectFactory
should be used to construct instances.
BUNDLE_NAMESPACE, HOST_NAMESPACE, PACKAGE_NAMESPACE, TYPE_FRAGMENT
Modifier and Type | Method and Description |
---|---|
boolean |
attachFragments()
Returns true if this bundle allows fragments to attach
|
boolean |
dynamicFragments()
Returns true if this bundle allows fragments to attach dynamically
after it has been resolved.
|
ImportPackageSpecification[] |
getAddedDynamicImportPackages()
Returns an array of dynamic import package specifications that have been added
dynamically to this bundle description.
|
Map<String,Object> |
getAttributes()
Returns the arbitrary attributes for this bundle description.
|
long |
getBundleId()
Returns the numeric id of this bundle.
|
State |
getContainingState()
Returns the state object which hosts this bundle.
|
BundleDescription[] |
getDependents()
Returns all bundles which depend on this bundle.
|
String[] |
getExecutionEnvironments()
Returns the list of execution environments that are required by
this bundle.
|
ExportPackageDescription[] |
getExportPackages()
Returns an array of export package descriptions defined by the Export-Package clauses.
|
BundleDescription[] |
getFragments()
Returns all fragments known to this bundle (regardless resolution status).
|
GenericDescription[] |
getGenericCapabilities()
Returns an array of generic descriptions for the capabilities of this bundle.
|
GenericSpecification[] |
getGenericRequires()
Returns an array of generic specifications constraints required by this bundle.
|
HostSpecification |
getHost()
Returns the host for this bundle.
|
ImportPackageSpecification[] |
getImportPackages()
Returns an array of import package specifications defined by the Import-Package clause.
|
String |
getLocation()
The location string for this bundle.
|
NativeCodeSpecification |
getNativeCodeSpecification()
Returns the native code specification for this bundle.
|
String |
getPlatformFilter()
Returns the platform filter in the form of an LDAP filter
|
BundleSpecification[] |
getRequiredBundles()
Returns an array of bundle specifications defined by the Require-Bundle
clause in this bundle.
|
GenericDescription[] |
getResolvedGenericRequires()
Returns all the capabilities that satisfy all the capability requirements for this
bundle.
|
ExportPackageDescription[] |
getResolvedImports()
Returns all the export packages that satisfy all the imported packages for this bundle.
|
BundleDescription[] |
getResolvedRequires()
Returns all the bundle descriptions that satisfy all the require bundles for this bundle.
|
ExportPackageDescription[] |
getSelectedExports()
Returns all the exported packages from this bundle that have been selected by
the resolver.
|
GenericDescription[] |
getSelectedGenericCapabilities()
Returns all the capabilities provided by ths bundle that have been selected by
the resolver.
|
ExportPackageDescription[] |
getSubstitutedExports()
Returns the export packages that satisfy imported packages for this bundle description
and substitute one of the exports for this bundle description.
|
String |
getSymbolicName()
Gets the Bundle-SymbolicName of this BundleDescription.
|
boolean |
hasDynamicImports()
Returns true if this bundle has one or more dynamically imported packages.
|
boolean |
isRemovalPending()
Returns whether this bundle is pending a removal.
|
boolean |
isResolved()
Returns true if this bundle is resolved in its host state.
|
boolean |
isSingleton()
Returns whether this bundle is a singleton.
|
String |
toString()
Returns the string representation of this bundle.
|
getCapability, getDeclaredAttributes, getDeclaredDirectives, getName, getSupplier, getUserObject, getVersion, setUserObject
getCapabilities, getDeclaredCapabilities, getDeclaredRequirements, getRequirements, getTypes, getVersion, getWiring
getBundle
String getSymbolicName()
BaseDescription.getName()
.getSymbolicName
in interface BundleRevision
Bundle.getSymbolicName()
Map<String,Object> getAttributes()
String getLocation()
BundleSpecification[] getRequiredBundles()
ExportPackageDescription[] getExportPackages()
ImportPackageSpecification[] getImportPackages()
ImportPackageSpecification[] getAddedDynamicImportPackages()
State.addDynamicImportPackages(BundleDescription, ImportPackageSpecification[])
GenericSpecification[] getGenericRequires()
GenericDescription[] getGenericCapabilities()
boolean hasDynamicImports()
ExportPackageDescription[] getSelectedExports()
getExportPackages()
that have been selected by the resolver and
packages which are propagated by this bundle.GenericDescription[] getSelectedGenericCapabilities()
getGenericCapabilities()
that have been selected by the
resolver and any capabilities provided by fragments attached to this bundle.BundleDescription[] getResolvedRequires()
ExportPackageDescription[] getResolvedImports()
GenericDescription[] getResolvedGenericRequires()
boolean isResolved()
State getContainingState()
String toString()
HostSpecification getHost()
long getBundleId()
BundleDescription[] getFragments()
boolean isSingleton()
The existence of a single bundle marked as singleton causes all bundles with the same symbolic name to be treated as singletons as well.
true
, if this bundle is a singleton,
false
otherwiseboolean isRemovalPending()
true
, if this bundle is pending a removal,
false
otherwiseBundleDescription[] getDependents()
String getPlatformFilter()
boolean attachFragments()
boolean dynamicFragments()
String[] getExecutionEnvironments()
NativeCodeSpecification getNativeCodeSpecification()
null
is returned if there is no native code
specification.ExportPackageDescription[] getSubstitutedExports()
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.