Package net.sansa_stack.spark.cli.cmd
Class VersionProviderFromClasspathProperties
- java.lang.Object
-
- net.sansa_stack.spark.cli.cmd.VersionProviderFromClasspathProperties
-
- All Implemented Interfaces:
picocli.CommandLine.IVersionProvider
- Direct Known Subclasses:
VersionProviderSansa
public abstract class VersionProviderFromClasspathProperties extends Object implements picocli.CommandLine.IVersionProvider
Implementation of picocli'sCommandLine.IVersionProviderthat reads the version string from an entry of a properties file on the class path with a specific key. This class is suitable for copy&paste between projects (or to put into a central place) Subclasses are then tied to a specific setup- Author:
- Claus Stadler
-
-
Constructor Summary
Constructors Constructor Description VersionProviderFromClasspathProperties()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract StringgetResourceName()abstract Collection<String>getStrings(Properties properties)String[]getVersion()
-
-
-
Method Detail
-
getResourceName
public abstract String getResourceName()
-
getStrings
public abstract Collection<String> getStrings(Properties properties)
-
-