Package com.jk.core.version
Class JKVersionManager
java.lang.Object
com.jk.core.version.JKVersionManager
This class manages version information for software components.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Method Summary
Modifier and TypeMethodDescriptionstatic JKVersionManager
This method gets the singleton instance of the version manager.getVersionInfo
(String name) This method get version information by name.This method gets the map of version information.This method gets a list of all version information.protected void
init()
This method initialize the version manager by reading and registering version information from build properties files.static void
This main method demonstrates how to display version information.void
registerInfo
(JKVersionInfo info) This method register version information.void
registerInfo
(String fileName) This method register version information from a build properties file.
-
Method Details
-
getInstance
This method gets the singleton instance of the version manager.- Returns:
- the singleton instance of JKVersionManager.
-
init
This method initialize the version manager by reading and registering version information from build properties files.- Throws:
IOException
- if an I/O exception has occurred.
-
registerInfo
This method register version information from a build properties file.- Parameters:
fileName
- Specifies the name of the build properties file.
-
registerInfo
This method register version information.- Parameters:
info
- Specifies the version information to register.
-
getVersionInfoMap
This method gets the map of version information.- Returns:
- the map of version information.
-
getVersionInfo
This method get version information by name.- Parameters:
name
- Specifies the name of the software component.- Returns:
- the version information.
-
getVersionsInfo
This method gets a list of all version information.- Returns:
- a list of all version information.
-
main
This main method demonstrates how to display version information.- Parameters:
args
- the command-line arguments.
-