Package owl.util
Class OwlVersion
- java.lang.Object
-
- owl.util.OwlVersion
-
- All Implemented Interfaces:
CommandLine.IVersionProvider
public final class OwlVersion extends Object implements CommandLine.IVersionProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OwlVersion.NameAndVersion
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OwlVersion.NameAndVersion
getNameAndVersion()
Obtains the name and version of the currently running Owl component.String[]
getVersion()
Returns version information for a command.
-
-
-
Method Detail
-
getVersion
public String[] getVersion() throws Exception
Description copied from interface:CommandLine.IVersionProvider
Returns version information for a command.- Specified by:
getVersion
in interfaceCommandLine.IVersionProvider
- Returns:
- version information (each string in the array is displayed on a separate line)
- Throws:
Exception
- an exception detailing what went wrong when obtaining version information
-
getNameAndVersion
public static OwlVersion.NameAndVersion getNameAndVersion()
Obtains the name and version of the currently running Owl component. This is done by searching the current stack trace for the initial entry point. It is assumed that this is called from the main thread.
-
-