Class FileBundleVersionInfo

  • All Implemented Interfaces:
    java.lang.Comparable<BundleVersionInfo<?>>

    public class FileBundleVersionInfo
    extends BundleVersionInfo<java.io.File>
    BundleVersionInfo based on a bundle jar file
    • Constructor Detail

      • FileBundleVersionInfo

        public FileBundleVersionInfo​(java.io.File bundle)
                              throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • isBundle

        public boolean isBundle()
        Specified by:
        isBundle in class BundleVersionInfo<java.io.File>
        Returns:
        True if the provided data is a valid bundle
      • getBundleLastModified

        public long getBundleLastModified()
        Description copied from class: BundleVersionInfo
        Return the bundle last modification time, based on the BND_LAST_MODIFIED manifest header, if available. This is *not* the Bundle.getLastModified() value, which refers to actions in the OSGi framework.
        Specified by:
        getBundleLastModified in class BundleVersionInfo<java.io.File>
        Returns:
        BND_LAST_MODIFIED_MISSING if header not supplied
      • getBundleSymbolicName

        public java.lang.String getBundleSymbolicName()
        Specified by:
        getBundleSymbolicName in class BundleVersionInfo<java.io.File>
        Returns:
        Return the bundle symbolic name, null if not available
      • getSource

        public java.io.File getSource()
        Specified by:
        getSource in class BundleVersionInfo<java.io.File>
        Returns:
        Return the source of information: underlying File or Bundle
      • isSnapshot

        public boolean isSnapshot()
        Specified by:
        isSnapshot in class BundleVersionInfo<java.io.File>
        Returns:
        True if the bundle version indicates a snapshot