java.lang.Object | |
↳ | com.fasterxml.jackson.core.util.VersionUtil |
Known Direct Subclasses |
Functionality for supporting exposing of component Version
s.
Note that this class can be used in two roles: first, as a static utility class for loading purposes, and second, as a singleton loader of per-module version information. In latter case one must sub-class to get proper per-module instance; and sub-class must reside in same Java package as matching "VERSION.txt" file.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | VERSION_FILE |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Will attempt to load the maven version for the given groupId and
artifactId.
| |||||||||||
This method is deprecated.
No replacement.
| |||||||||||
Helper method that will try to load version information for specified
class.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Will attempt to load the maven version for the given groupId and artifactId. Maven puts a pom.properties file in META-INF/maven/groupId/artifactId, containing the groupId, artifactId and version of the library.
classLoader | the ClassLoader to load the pom.properties file from |
---|---|
groupId | the groupId of the library |
artifactId | the artifactId of the library |
This method is deprecated.
No replacement.
Use variant that takes three arguments instead
Helper method that will try to load version information for specified
class. Implementation is simple: class loader that loaded specified
class is asked to load resource with name "VERSION" from same
location (package) as class itself had.
If no version information is found, unknownVersion()
is
returned.