Package org.apache.felix.framework
Class BundleRevisionImpl
java.lang.Object
org.apache.felix.framework.BundleRevisionImpl
- All Implemented Interfaces:
- BundleReference,- BundleRevision,- Resource
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intFields inherited from interface org.osgi.framework.wiring.BundleRevisionBUNDLE_NAMESPACE, HOST_NAMESPACE, PACKAGE_NAMESPACE, TYPE_FRAGMENT
- 
Constructor SummaryConstructorsConstructorDescriptionBundleRevisionImpl(Bundle bundle, String id) This constructor is used by the extension manager, since it needs a constructor that does not throw an exception.
- 
Method SummaryModifier and TypeMethodDescriptionReturns theBundleobject associated with thisBundleReference.getCapabilities(String namespace) Returns the capabilities declared by this resource.getDeclaredCapabilities(String namespace) Returns the capabilities declared by this bundle revision.getDeclaredRequirements(String namespace) Returns the requirements declared by this bundle revision.getId()getInputStream(int index, String urlPath) getLocalURL(int index, String urlPath) getRequirements(String namespace) Returns the requirements declared by this bundle resource.Returns the symbolic name for this bundle revision.intgetTypes()Returns the special types of this bundle revision.Returns the version for this bundle revision.Returns the bundle wiring which is using this bundle revision.booleanhasInputStream(int index, String urlPath) booleanvoidresolve(BundleWiringImpl wiring) voidtoString()
- 
Field Details- 
EAGER_ACTIVATIONpublic static final int EAGER_ACTIVATION- See Also:
 
- 
LAZY_ACTIVATIONpublic static final int LAZY_ACTIVATION- See Also:
 
 
- 
- 
Constructor Details- 
BundleRevisionImplThis constructor is used by the extension manager, since it needs a constructor that does not throw an exception.- Parameters:
- bundle-
- id-
- logger-
- bootPkgs-
- bootPkgWildcards-
- Throws:
- BundleException
 
 
- 
- 
Method Details- 
getSymbolicNameDescription copied from interface:BundleRevisionReturns the symbolic name for this bundle revision.- Specified by:
- getSymbolicNamein interface- BundleRevision
- Returns:
- The symbolic name for this bundle revision.
- See Also:
 
- 
getVersionDescription copied from interface:BundleRevisionReturns the version for this bundle revision.- Specified by:
- getVersionin interface- BundleRevision
- Returns:
- The version for this bundle revision, or
         Version.emptyVersionif this bundle revision has no version information.
- See Also:
 
- 
getCapabilitiesDescription copied from interface:BundleRevisionReturns the capabilities declared by this resource.This method returns the same value as BundleRevision.getDeclaredCapabilities(String).- Specified by:
- getCapabilitiesin interface- BundleRevision
- Specified by:
- getCapabilitiesin interface- Resource
- Parameters:
- namespace- The namespace of the declared capabilities to return or- nullto return the declared capabilities from all namespaces.
- Returns:
- An unmodifiable list containing the declared Capabilitys from the specified namespace. The returned list will be empty if this resource declares no capabilities in the specified namespace.
 
- 
getDeclaredCapabilitiesDescription copied from interface:BundleRevisionReturns the capabilities declared by this bundle revision.- Specified by:
- getDeclaredCapabilitiesin interface- BundleRevision
- Parameters:
- namespace- The namespace of the declared capabilities to return or- nullto return the declared capabilities from all namespaces.
- Returns:
- An unmodifiable list containing the declared
         BundleCapabilitys from the specified namespace. The returned list will be empty if this bundle revision declares no capabilities in the specified namespace. The list contains the declared capabilities in the order they are specified in the manifest.
 
- 
getRequirementsDescription copied from interface:BundleRevisionReturns the requirements declared by this bundle resource.This method returns the same value as BundleRevision.getDeclaredRequirements(String).- Specified by:
- getRequirementsin interface- BundleRevision
- Specified by:
- getRequirementsin interface- Resource
- Parameters:
- namespace- The namespace of the declared requirements to return or- nullto return the declared requirements from all namespaces.
- Returns:
- An unmodifiable list containing the declared Requirements from the specified namespace. The returned list will be empty if this resource declares no requirements in the specified namespace.
 
- 
getDeclaredRequirementsDescription copied from interface:BundleRevisionReturns the requirements declared by this bundle revision.- Specified by:
- getDeclaredRequirementsin interface- BundleRevision
- Parameters:
- namespace- The namespace of the declared requirements to return or- nullto return the declared requirements from all namespaces.
- Returns:
- An unmodifiable list containing the declared
         BundleRequirements from the specified namespace. The returned list will be empty if this bundle revision declares no requirements in the specified namespace. The list contains the declared requirements in the order they are specified in the manifest.
 
- 
getTypespublic int getTypes()Description copied from interface:BundleRevisionReturns the special types of this bundle revision. The bundle revision type values are: A bundle revision may be more than one type at a time. A type code is used to identify the bundle revision type for future extendability.If this bundle revision is not one or more of the defined types then 0 is returned. - Specified by:
- getTypesin interface- BundleRevision
- Returns:
- The special types of this bundle revision. The type values are ORed together.
 
- 
getWiringDescription copied from interface:BundleRevisionReturns the bundle wiring which is using this bundle revision.- Specified by:
- getWiringin interface- BundleRevision
- Returns:
- The bundle wiring which is using this bundle revision or
         nullif no bundle wiring is using this bundle revision.
- See Also:
 
- 
getBundleDescription copied from interface:BundleReferenceReturns theBundleobject associated with thisBundleReference.- Specified by:
- getBundlein interface- BundleReference
- Returns:
- The Bundleobject associated with thisBundleReference.
 
- 
getHeaders
- 
isExtensionpublic boolean isExtension()
- 
getManifestVersion
- 
getDeclaredNativeLibraries
- 
getId
- 
resolve
- 
setProtectionDomain
- 
getProtectionDomain
- 
getContent
- 
getEntry
- 
hasInputStream
- 
getInputStream- Throws:
- IOException
 
- 
getLocalURL
- 
toString
 
-