org.codehaus.jackson.util
Class VersionUtil
java.lang.Object
org.codehaus.jackson.util.VersionUtil
public class VersionUtil
- extends Object
Functionality for supporting exposing of component Version
s.
- Since:
- 1.6
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VERSION_FILE
public static final String VERSION_FILE
- See Also:
- Constant Field Values
VersionUtil
public VersionUtil()
versionFor
public static Version versionFor(Class<?> cls)
- 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,
Version.unknownVersion()
is
returned.
parseVersion
public static Version parseVersion(String versionStr)
parseVersionPart
protected static int parseVersionPart(String partStr)