- 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 StringartifactId()StringartifactVersion()longbuildTimeMillis()longcommitTimeMillis()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.StringlongCommitHash()static voidmain(String[] args)Prints the version information toSystem.err.StringrepositoryStatus()StringshortCommitHash()StringtoString()
-
-
-
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()
-
-