JavaScript is disabled on your browser.
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method
io.netty.util

Class Version



  • public final class Version
    extends java.lang.Object
    Retrieves the version information of available Netty artifacts.

    This class retrieves the version information from META-INF/io.netty.versions.properties, which is generated in build time. Note that it may not be possible to retrieve the information completely, depending on your environment, such as the specified ClassLoader, the current SecurityManager.

    • Method Summary

      All Methods
      Modifier and Type Method and Description
      java.lang.String artifactId ()
      java.lang.String artifactVersion ()
      long buildTimeMillis ()
      long commitTimeMillis ()
      static java.util.Map<java.lang.String,Version> identify ()
      Retrieves the version information of Netty artifacts using the current context class loader.
      static java.util.Map<java.lang.String,Version> identify (java.lang.ClassLoader classLoader)
      Retrieves the version information of Netty artifacts using the specified ClassLoader.
      java.lang.String longCommitHash ()
      static void main (java.lang.String[] args)
      Prints the version information to System.err.
      java.lang.String repositoryStatus ()
      java.lang.String shortCommitHash ()
      java.lang.String toString ()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • identify

        public static java.util.Map<java.lang.String,Version> identify()
        Retrieves the version information of Netty artifacts using the current context class loader.
        Returns:
        A Map whose keys are Maven artifact IDs and whose values are Versions
      • identify

        public static java.util.Map<java.lang.String,Version> identify(java.lang.ClassLoader classLoader)
        Retrieves the version information of Netty artifacts using the specified ClassLoader.
        Returns:
        A Map whose keys are Maven artifact IDs and whose values are Versions
      • main

        public static void main(java.lang.String[] args)
        Prints the version information to System.err.
      • artifactId

        public java.lang.String artifactId()
      • artifactVersion

        public java.lang.String artifactVersion()
      • buildTimeMillis

        public long buildTimeMillis()
      • commitTimeMillis

        public long commitTimeMillis()
      • shortCommitHash

        public java.lang.String shortCommitHash()
      • longCommitHash

        public java.lang.String longCommitHash()
      • repositoryStatus

        public java.lang.String repositoryStatus()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method

Copyright © 2008–2018 The Netty Project. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /