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 String
private final String
private final long
private final long
private final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private final String
private final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
long
identify()
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 void
Prints the version information toSystem.err
.private static long
parseIso8601
(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
-