Package nl.knaw.dans.lib.util
Class AbstractCommandLineApp<C extends io.dropwizard.core.Configuration>
java.lang.Object
nl.knaw.dans.lib.util.AbstractCommandLineApp<C>
-
Field Details
-
CONFIG_FILE_KEY
-
EXAMPLE_CONFIG_FILE_KEY
Path from which an example configuration file can be loaded, to be instantiated with the default configuration, if no configuration file is found.
-
-
Constructor Details
-
AbstractCommandLineApp
public AbstractCommandLineApp()
-
-
Method Details
-
run
public void run(String[] args) throws IOException, io.dropwizard.configuration.ConfigurationException, InvocationTargetException, IllegalAccessException, NoSuchMethodException, InstantiationException - Throws:
IOException
io.dropwizard.configuration.ConfigurationException
InvocationTargetException
IllegalAccessException
NoSuchMethodException
InstantiationException
-
loadConfiguration
public C loadConfiguration(File configFile) throws io.dropwizard.configuration.ConfigurationException, IOException - Throws:
io.dropwizard.configuration.ConfigurationException
IOException
-
getName
-
configureCommandLine
-
call
-