类 BundleRevisionImpl
- java.lang.Object
-
- org.apache.felix.framework.BundleRevisionImpl
-
- 所有已实现的接口:
BundleReference,BundleRevision,Resource
public class BundleRevisionImpl extends java.lang.Object implements BundleRevision, Resource
-
-
字段概要
字段 修饰符和类型 字段 说明 static intEAGER_ACTIVATIONstatic intLAZY_ACTIVATION-
从接口继承的字段 org.osgi.framework.wiring.BundleRevision
BUNDLE_NAMESPACE, HOST_NAMESPACE, PACKAGE_NAMESPACE, TYPE_FRAGMENT
-
-
构造器概要
构造器 构造器 说明 BundleRevisionImpl(Bundle bundle, java.lang.String id)This constructor is used by the extension manager, since it needs a constructor that does not throw an exception.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 BundlegetBundle()Returns theBundleobject associated with thisBundleReference.java.util.List<Capability>getCapabilities(java.lang.String namespace)Returns the capabilities declared by this resource.ContentgetContent()java.util.List<BundleCapability>getDeclaredCapabilities(java.lang.String namespace)Returns the capabilities declared by this bundle revision.java.util.List<NativeLibrary>getDeclaredNativeLibraries()java.util.List<BundleRequirement>getDeclaredRequirements(java.lang.String namespace)Returns the requirements declared by this bundle revision.java.net.URLgetEntry(java.lang.String name)java.util.MapgetHeaders()java.lang.StringgetId()java.io.InputStreamgetInputStream(int index, java.lang.String urlPath)java.net.URLgetLocalURL(int index, java.lang.String urlPath)java.lang.StringgetManifestVersion()java.security.ProtectionDomaingetProtectionDomain()java.util.List<Requirement>getRequirements(java.lang.String namespace)Returns the requirements declared by this bundle resource.java.lang.StringgetSymbolicName()Returns the symbolic name for this bundle revision.intgetTypes()Returns the special types of this bundle revision.VersiongetVersion()Returns the version for this bundle revision.BundleWiringgetWiring()Returns the bundle wiring which is using this bundle revision.booleanhasInputStream(int index, java.lang.String urlPath)booleanisExtension()voidresolve(BundleWiringImpl wiring)voidsetProtectionDomain(java.security.ProtectionDomain pd)java.lang.StringtoString()
-
-
-
构造器详细资料
-
BundleRevisionImpl
public BundleRevisionImpl(Bundle bundle, java.lang.String id)
This constructor is used by the extension manager, since it needs a constructor that does not throw an exception.- 参数:
logger-bundle-id-bootPkgs-bootPkgWildcards-- 抛出:
BundleException
-
-
方法详细资料
-
getSymbolicName
public java.lang.String getSymbolicName()
从接口复制的说明:BundleRevisionReturns the symbolic name for this bundle revision.- 指定者:
getSymbolicName在接口中BundleRevision- 返回:
- The symbolic name for this bundle revision.
- 另请参阅:
Bundle.getSymbolicName()
-
getVersion
public Version getVersion()
从接口复制的说明:BundleRevisionReturns the version for this bundle revision.- 指定者:
getVersion在接口中BundleRevision- 返回:
- The version for this bundle revision, or
Version.emptyVersionif this bundle revision has no version information. - 另请参阅:
Bundle.getVersion()
-
getCapabilities
public java.util.List<Capability> getCapabilities(java.lang.String namespace)
从接口复制的说明:BundleRevisionReturns the capabilities declared by this resource.This method returns the same value as
BundleRevision.getDeclaredCapabilities(String).- 指定者:
getCapabilities在接口中BundleRevision- 指定者:
getCapabilities在接口中Resource- 参数:
namespace- The namespace of the declared capabilities to return ornullto return the declared capabilities from all namespaces.- 返回:
- 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.
-
getDeclaredCapabilities
public java.util.List<BundleCapability> getDeclaredCapabilities(java.lang.String namespace)
从接口复制的说明:BundleRevisionReturns the capabilities declared by this bundle revision.- 指定者:
getDeclaredCapabilities在接口中BundleRevision- 参数:
namespace- The namespace of the declared capabilities to return ornullto return the declared capabilities from all namespaces.- 返回:
- 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.
-
getRequirements
public java.util.List<Requirement> getRequirements(java.lang.String namespace)
从接口复制的说明:BundleRevisionReturns the requirements declared by this bundle resource.This method returns the same value as
BundleRevision.getDeclaredRequirements(String).- 指定者:
getRequirements在接口中BundleRevision- 指定者:
getRequirements在接口中Resource- 参数:
namespace- The namespace of the declared requirements to return ornullto return the declared requirements from all namespaces.- 返回:
- 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.
-
getDeclaredRequirements
public java.util.List<BundleRequirement> getDeclaredRequirements(java.lang.String namespace)
从接口复制的说明:BundleRevisionReturns the requirements declared by this bundle revision.- 指定者:
getDeclaredRequirements在接口中BundleRevision- 参数:
namespace- The namespace of the declared requirements to return ornullto return the declared requirements from all namespaces.- 返回:
- 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.
-
getTypes
public int getTypes()
从接口复制的说明: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.
- 指定者:
getTypes在接口中BundleRevision- 返回:
- The special types of this bundle revision. The type values are ORed together.
-
getWiring
public BundleWiring getWiring()
从接口复制的说明:BundleRevisionReturns the bundle wiring which is using this bundle revision.- 指定者:
getWiring在接口中BundleRevision- 返回:
- The bundle wiring which is using this bundle revision or
nullif no bundle wiring is using this bundle revision. - 另请参阅:
BundleWiring.getRevision()
-
getBundle
public Bundle getBundle()
从接口复制的说明:BundleReferenceReturns theBundleobject associated with thisBundleReference.- 指定者:
getBundle在接口中BundleReference- 返回:
- The
Bundleobject associated with thisBundleReference.
-
getHeaders
public java.util.Map getHeaders()
-
isExtension
public boolean isExtension()
-
getManifestVersion
public java.lang.String getManifestVersion()
-
getDeclaredNativeLibraries
public java.util.List<NativeLibrary> getDeclaredNativeLibraries()
-
getId
public java.lang.String getId()
-
resolve
public void resolve(BundleWiringImpl wiring)
-
setProtectionDomain
public void setProtectionDomain(java.security.ProtectionDomain pd)
-
getProtectionDomain
public java.security.ProtectionDomain getProtectionDomain()
-
getContent
public Content getContent()
-
getEntry
public java.net.URL getEntry(java.lang.String name)
-
hasInputStream
public boolean hasInputStream(int index, java.lang.String urlPath)
-
getInputStream
public java.io.InputStream getInputStream(int index, java.lang.String urlPath) throws java.io.IOException- 抛出:
java.io.IOException
-
getLocalURL
public java.net.URL getLocalURL(int index, java.lang.String urlPath)
-
toString
public java.lang.String toString()
- 覆盖:
toString在类中java.lang.Object
-
-