Package io.netty.util
Class Version
java.lang.Object
io.netty.util.Version
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final Stringprivate final longprivate final longprivate final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate final Stringprivate final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglongidentify()Retrieves the version information of Netty artifacts using the current context class loader.identify(ClassLoader classLoader) Retrieves the version information of Netty artifacts using the specifiedClassLoader.static voidPrints the version information toSystem.err.private static longparseIso8601(String value) toString()
-
Field Details
-
PROP_VERSION
- See Also:
-
PROP_BUILD_DATE
- See Also:
-
PROP_COMMIT_DATE
- See Also:
-
PROP_SHORT_COMMIT_HASH
- See Also:
-
PROP_LONG_COMMIT_HASH
- See Also:
-
PROP_REPO_STATUS
- See Also:
-
artifactId
-
artifactVersion
-
buildTimeMillis
private final long buildTimeMillis -
commitTimeMillis
private final long commitTimeMillis -
shortCommitHash
-
longCommitHash
-
repositoryStatus
-
-
Constructor Details
-
Version
-
-
Method Details
-
identify
Retrieves the version information of Netty artifacts using the current context class loader. -
identify
Retrieves the version information of Netty artifacts using the specifiedClassLoader. -
parseIso8601
-
main
Prints the version information toSystem.err. -
artifactId
-
artifactVersion
-
buildTimeMillis
public long buildTimeMillis() -
commitTimeMillis
public long commitTimeMillis() -
shortCommitHash
-
longCommitHash
-
repositoryStatus
-
toString
-