类 VersionExtractor

java.lang.Object
cn.taketoday.lang.VersionExtractor

public abstract class VersionExtractor extends Object
Extracts version information for a Class.
从以下版本开始:
4.0 2023/7/21 17:52
作者:
Harry Yang
另请参阅:
  • 构造器详细资料

    • VersionExtractor

      public VersionExtractor()
  • 方法详细资料

    • forClass

      @Nullable public static String forClass(Class<?> cls)
      Return the version information for the provided Class.
      参数:
      cls - the Class to retrieve the version for
      返回:
      the version, or null if a version can not be extracted
    • getImplementationVersion

      private static String getImplementationVersion(JarFile jarFile) throws IOException
      抛出:
      IOException