- java.lang.Object
-
- io.netty5.util.Version
-
public final class Version extends Object
Retrieves the version information of available Netty artifacts.This class retrieves the version information from
META-INF/io.netty5.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 specifiedClassLoader
, the currentSecurityManager
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
artifactId()
String
artifactVersion()
long
buildTimeMillis()
long
commitTimeMillis()
static Map<String,Version>
identify()
Retrieves the version information of Netty artifacts using the current context class loader.static Map<String,Version>
identify(ClassLoader classLoader)
Retrieves the version information of Netty artifacts using the specifiedClassLoader
.String
longCommitHash()
static void
main(String[] args)
Prints the version information toSystem.err
.String
repositoryStatus()
String
shortCommitHash()
String
toString()
-
-
-
Method Detail
-
identify
public static Map<String,Version> identify()
Retrieves the version information of Netty artifacts using the current context class loader.
-
identify
public static Map<String,Version> identify(ClassLoader classLoader)
Retrieves the version information of Netty artifacts using the specifiedClassLoader
.
-
main
public static void main(String[] args)
Prints the version information toSystem.err
.
-
artifactId
public String artifactId()
-
artifactVersion
public String artifactVersion()
-
buildTimeMillis
public long buildTimeMillis()
-
commitTimeMillis
public long commitTimeMillis()
-
shortCommitHash
public String shortCommitHash()
-
longCommitHash
public String longCommitHash()
-
repositoryStatus
public String repositoryStatus()
-
-