类 BundleRevisionImpl

    • 字段详细资料

      • EAGER_ACTIVATION

        public static final int EAGER_ACTIVATION
        另请参阅:
        常量字段值
      • LAZY_ACTIVATION

        public static final int LAZY_ACTIVATION
        另请参阅:
        常量字段值
    • 构造器详细资料

      • 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
    • 方法详细资料

      • getCapabilities

        public java.util.List<Capability> getCapabilities​(java.lang.String namespace)
        从接口复制的说明: BundleRevision
        Returns 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 or null to 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)
        从接口复制的说明: BundleRevision
        Returns the capabilities declared by this bundle revision.
        指定者:
        getDeclaredCapabilities 在接口中 BundleRevision
        参数:
        namespace - The namespace of the declared capabilities to return or null to 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)
        从接口复制的说明: BundleRevision
        Returns 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 or null to return the declared requirements from all namespaces.
        返回:
        An unmodifiable list containing the declared Requirement s 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)
        从接口复制的说明: BundleRevision
        Returns the requirements declared by this bundle revision.
        指定者:
        getDeclaredRequirements 在接口中 BundleRevision
        参数:
        namespace - The namespace of the declared requirements to return or null to 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()
        从接口复制的说明: BundleRevision
        Returns 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.
      • getBundle

        public Bundle getBundle()
        从接口复制的说明: BundleReference
        Returns the Bundle object associated with this BundleReference.
        指定者:
        getBundle 在接口中 BundleReference
        返回:
        The Bundle object associated with this BundleReference.
      • 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()
      • 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