|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.osgi.internal.resolver.BaseDescriptionImpl
org.eclipse.osgi.internal.resolver.BundleDescriptionImpl
public final class BundleDescriptionImpl
| Field Summary |
|---|
| Fields inherited from class org.eclipse.osgi.internal.resolver.BaseDescriptionImpl |
|---|
monitor |
| Fields inherited from interface org.osgi.framework.wiring.BundleRevision |
|---|
BUNDLE_NAMESPACE, HOST_NAMESPACE, PACKAGE_NAMESPACE, TYPE_FRAGMENT |
| Constructor Summary | |
|---|---|
BundleDescriptionImpl()
|
|
| Method Summary | |
|---|---|
protected void |
addDependencies(BaseDescription[] newDependencies,
boolean checkDups)
|
protected void |
addDependency(BaseDescriptionImpl dependency,
boolean checkDups)
|
protected void |
addDependent(BundleDescription dependent)
|
boolean |
attachFragments()
Returns true if this bundle allows fragments to attach |
boolean |
compare(KeyedElement other)
Compares this element with a specified element |
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. |
Bundle |
getBundle()
Returns the Bundle object associated with this
BundleReference. |
long |
getBundleId()
Returns the numeric id of this bundle. |
List<Capability> |
getCapabilities(String namespace)
|
State |
getContainingState()
Returns the state object which hosts this bundle. |
Map<String,Object> |
getDeclaredAttributes()
Returns the attributes declared with the description. |
List<BundleCapability> |
getDeclaredCapabilities(String namespace)
Returns the capabilities declared by this bundle revision. |
Map<String,String> |
getDeclaredDirectives()
Returns the directives declared with the description. |
List<BundleRequirement> |
getDeclaredRequirements(String namespace)
Returns the requirements declared by this bundle revision. |
BundleDescription[] |
getDependents()
Returns all bundles which depend on this bundle. |
int |
getEquinoxEE()
|
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. |
Object |
getKey()
Returns the key for this element |
int |
getKeyHashCode()
Returns the hash code of the key |
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. |
List<Requirement> |
getRequirements(String namespace)
|
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. |
protected int |
getStateBits()
|
ExportPackageDescription[] |
getSubstitutedExports()
Returns the export packages that satisfy imported packages for this bundle description and substitute one of the exports for this bundle description. |
BundleDescription |
getSupplier()
Returns the bundle which supplies this base description |
String |
getSymbolicName()
Gets the Bundle-SymbolicName of this BundleDescription. |
int |
getTypes()
Returns the special types of this bundle revision. |
Map<String,List<StateWire>> |
getWires()
|
BundleWiring |
getWiring()
Returns the bundle wiring which is using this bundle revision. |
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. |
protected void |
removeDependencies()
|
protected void |
removeDependent(BundleDescription dependent)
|
protected void |
setBundleId(long bundleId)
|
protected void |
setContainingState(State value)
|
void |
setEquinoxEE(int equinox_ee)
|
protected void |
setExecutionEnvironments(String[] executionEnvironments)
|
protected void |
setExportPackages(ExportPackageDescription[] exportPackages)
|
protected void |
setGenericCapabilities(GenericDescription[] genericCapabilities)
|
protected void |
setGenericRequires(GenericSpecification[] genericRequires)
|
protected void |
setHost(HostSpecification host)
|
protected void |
setImportPackages(ImportPackageSpecification[] importPackages)
|
protected void |
setLazyLoaded(boolean lazyLoad)
|
protected void |
setLocation(String location)
|
protected void |
setNativeCodeSpecification(NativeCodeSpecification nativeCode)
|
protected void |
setPlatformFilter(String platformFilter)
|
protected void |
setRequiredBundles(BundleSpecification[] requiredBundles)
|
protected void |
setResolvedCapabilities(GenericDescription[] resolvedCapabilities)
|
protected void |
setResolvedImports(ExportPackageDescription[] resolvedImports)
|
protected void |
setResolvedRequires(BundleDescription[] resolvedRequires)
|
protected void |
setSelectedCapabilities(GenericDescription[] selectedCapabilities)
|
protected void |
setSelectedExports(ExportPackageDescription[] selectedExports)
|
protected void |
setStateBit(int stateBit,
boolean on)
|
protected void |
setStateWires(Map<String,List<StateWire>> stateWires)
|
protected void |
setSubstitutedExports(ExportPackageDescription[] substitutedExports)
|
protected void |
setSymbolicName(String symbolicName)
|
String |
toString()
Returns the string representation of this bundle. |
| Methods inherited from class org.eclipse.osgi.internal.resolver.BaseDescriptionImpl |
|---|
getCapability, getFragmentDeclaration, getName, getUserObject, getVersion, setName, setUserObject, setVersion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.osgi.service.resolver.BaseDescription |
|---|
getCapability, getName, getUserObject, getVersion, setUserObject |
| Methods inherited from interface org.osgi.framework.wiring.BundleRevision |
|---|
getVersion |
| Constructor Detail |
|---|
public BundleDescriptionImpl()
| Method Detail |
|---|
public long getBundleId()
BundleDescription
getBundleId in interface BundleDescriptionpublic String getSymbolicName()
BundleDescriptionBaseDescription.getName().
getSymbolicName in interface BundleDescriptiongetSymbolicName in interface BundleRevisionBundle.getSymbolicName()public BundleDescription getSupplier()
BaseDescription
getSupplier in interface BaseDescriptionpublic String getLocation()
BundleDescription
getLocation in interface BundleDescriptionpublic String getPlatformFilter()
BundleDescription
getPlatformFilter in interface BundleDescriptionpublic String[] getExecutionEnvironments()
BundleDescription
getExecutionEnvironments in interface BundleDescriptionpublic ImportPackageSpecification[] getImportPackages()
BundleDescription
getImportPackages in interface BundleDescriptionpublic ImportPackageSpecification[] getAddedDynamicImportPackages()
BundleDescription
getAddedDynamicImportPackages in interface BundleDescriptionState.addDynamicImportPackages(BundleDescription, ImportPackageSpecification[])public BundleSpecification[] getRequiredBundles()
BundleDescription
getRequiredBundles in interface BundleDescriptionpublic GenericSpecification[] getGenericRequires()
BundleDescription
getGenericRequires in interface BundleDescriptionpublic GenericDescription[] getGenericCapabilities()
BundleDescription
getGenericCapabilities in interface BundleDescriptionpublic NativeCodeSpecification getNativeCodeSpecification()
BundleDescriptionnull is returned if there is no native code
specification.
getNativeCodeSpecification in interface BundleDescriptionpublic ExportPackageDescription[] getExportPackages()
BundleDescription
getExportPackages in interface BundleDescriptionpublic boolean isResolved()
BundleDescription
isResolved in interface BundleDescriptionpublic State getContainingState()
BundleDescription
getContainingState in interface BundleDescriptionpublic BundleDescription[] getFragments()
BundleDescription
getFragments in interface BundleDescriptionpublic HostSpecification getHost()
BundleDescription
getHost in interface BundleDescriptionpublic boolean isSingleton()
BundleDescriptionThe existence of a single bundle marked as singleton causes all bundles with the same symbolic name to be treated as singletons as well.
isSingleton in interface BundleDescriptiontrue, if this bundle is a singleton,
false otherwisepublic boolean isRemovalPending()
BundleDescription
isRemovalPending in interface BundleDescriptiontrue, if this bundle is pending a removal,
false otherwisepublic boolean hasDynamicImports()
BundleDescription
hasDynamicImports in interface BundleDescriptionpublic boolean attachFragments()
BundleDescription
attachFragments in interface BundleDescriptionpublic boolean dynamicFragments()
BundleDescription
dynamicFragments in interface BundleDescriptionpublic ExportPackageDescription[] getSelectedExports()
BundleDescriptionBundleDescription.getExportPackages() that have been selected by the resolver and
packages which are propagated by this bundle.
getSelectedExports in interface BundleDescriptionpublic GenericDescription[] getSelectedGenericCapabilities()
BundleDescriptionBundleDescription.getGenericCapabilities() that have been selected by the
resolver and any capabilities provided by fragments attached to this bundle.
getSelectedGenericCapabilities in interface BundleDescriptionpublic ExportPackageDescription[] getSubstitutedExports()
BundleDescription
getSubstitutedExports in interface BundleDescriptionpublic BundleDescription[] getResolvedRequires()
BundleDescription
getResolvedRequires in interface BundleDescriptionpublic ExportPackageDescription[] getResolvedImports()
BundleDescription
getResolvedImports in interface BundleDescriptionpublic GenericDescription[] getResolvedGenericRequires()
BundleDescription
getResolvedGenericRequires in interface BundleDescriptionpublic Map<String,List<StateWire>> getWires()
protected void setBundleId(long bundleId)
protected void setSymbolicName(String symbolicName)
protected void setLocation(String location)
protected void setPlatformFilter(String platformFilter)
protected void setExecutionEnvironments(String[] executionEnvironments)
protected void setExportPackages(ExportPackageDescription[] exportPackages)
protected void setImportPackages(ImportPackageSpecification[] importPackages)
protected void setRequiredBundles(BundleSpecification[] requiredBundles)
protected void setGenericCapabilities(GenericDescription[] genericCapabilities)
protected void setGenericRequires(GenericSpecification[] genericRequires)
protected void setNativeCodeSpecification(NativeCodeSpecification nativeCode)
protected int getStateBits()
protected void setStateBit(int stateBit,
boolean on)
protected void setContainingState(State value)
protected void setHost(HostSpecification host)
protected void setLazyLoaded(boolean lazyLoad)
protected void setSelectedExports(ExportPackageDescription[] selectedExports)
protected void setSelectedCapabilities(GenericDescription[] selectedCapabilities)
protected void setSubstitutedExports(ExportPackageDescription[] substitutedExports)
protected void setResolvedImports(ExportPackageDescription[] resolvedImports)
protected void setResolvedRequires(BundleDescription[] resolvedRequires)
protected void setResolvedCapabilities(GenericDescription[] resolvedCapabilities)
protected void setStateWires(Map<String,List<StateWire>> stateWires)
public String toString()
BundleDescription
toString in interface BundleDescriptiontoString in class Objectpublic Object getKey()
KeyedElement
getKey in interface KeyedElementpublic boolean compare(KeyedElement other)
KeyedElement
compare in interface KeyedElementother - the element to compare with
public int getKeyHashCode()
KeyedElement
getKeyHashCode in interface KeyedElementprotected void removeDependencies()
protected void addDependencies(BaseDescription[] newDependencies,
boolean checkDups)
protected void addDependency(BaseDescriptionImpl dependency,
boolean checkDups)
protected void addDependent(BundleDescription dependent)
protected void removeDependent(BundleDescription dependent)
public BundleDescription[] getDependents()
BundleDescription
getDependents in interface BundleDescriptionpublic void setEquinoxEE(int equinox_ee)
public int getEquinoxEE()
public Map<String,Object> getAttributes()
BundleDescription
getAttributes in interface BundleDescriptionpublic Map<String,String> getDeclaredDirectives()
BaseDescription
getDeclaredDirectives in interface BaseDescriptionpublic Map<String,Object> getDeclaredAttributes()
BaseDescription
getDeclaredAttributes in interface BaseDescriptionpublic List<BundleRequirement> getDeclaredRequirements(String namespace)
BundleRevision
getDeclaredRequirements in interface BundleRevisionnamespace - The name space of the declared requirements to return or
null to return the declared requirements from all name
spaces.
BundleRequirements, or an empty list if this bundle
revision declares no requirements in the specified name space.
The list contains the declared requirements in the order they are
specified in the manifest.public List<BundleCapability> getDeclaredCapabilities(String namespace)
BundleRevision
getDeclaredCapabilities in interface BundleRevisionnamespace - The name space of the declared capabilities to return or
null to return the declared capabilities from all name
spaces.
BundleCapabilitys, or an empty list if this bundle
revision declares no capabilities in the specified name space.
The list contains the declared capabilities in the order they are
specified in the manifest.public int getTypes()
BundleRevisionIf this bundle revision is not one or more of the defined types then 0 is returned.
getTypes in interface BundleRevisionpublic Bundle getBundle()
BundleReferenceBundle object associated with this
BundleReference.
getBundle in interface BundleReferenceBundle object associated with this
BundleReference.public BundleWiring getWiring()
BundleRevision
getWiring in interface BundleRevisionnull if no bundle wiring is using this bundle revision.BundleWiring.getRevision()public List<Capability> getCapabilities(String namespace)
public List<Requirement> getRequirements(String namespace)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||