Class AbstractApplication

java.lang.Object
org.apache.jackrabbit.vault.util.console.AbstractApplication
Direct Known Subclasses:
HelloWorldApp, ShellApp, VaultFsApp

public abstract class AbstractApplication extends Object
Console...
  • Field Details

  • Constructor Details

    • AbstractApplication

      public AbstractApplication()
  • Method Details

    • getVersion

      public String getVersion()
    • getPomProperties

      public PomProperties getPomProperties()
    • getCopyrightLine

      public String getCopyrightLine()
    • getVersionString

      public String getVersionString()
    • printVersion

      public void printVersion()
    • getApplicationName

      public abstract String getApplicationName()
      Returns the name of this application
      Returns:
      the name of this application
    • getShellCommand

      public abstract String getShellCommand()
      Returns the name of the shell command
      Returns:
      the name of the shell command
    • printHelp

      public void printHelp(String cmd)
    • getAppHelpFormatter

      protected org.apache.commons.cli2.util.HelpFormatter getAppHelpFormatter()
    • getApplicationCLGroup

      public org.apache.commons.cli2.Group getApplicationCLGroup()
    • addApplicationOptions

      public org.apache.commons.cli2.builder.GroupBuilder addApplicationOptions(org.apache.commons.cli2.builder.GroupBuilder gbuilder)
    • init

      protected void init()
    • run

      protected void run(String[] args)
    • setLogLevel

      public void setLogLevel(String level)
    • prepare

      public void prepare(org.apache.commons.cli2.CommandLine cl) throws ExecutionException
      Throws:
      ExecutionException
    • execute

      public void execute(org.apache.commons.cli2.CommandLine cl) throws ExecutionException
      Throws:
      ExecutionException
    • saveConfig

      public void saveConfig(String path) throws IOException
      Throws:
      IOException
    • loadConfig

      public void loadConfig(String path) throws IOException
      Throws:
      IOException
    • close

      protected void close()
    • getEnv

      public Properties getEnv()
    • setProperty

      public void setProperty(String key, String value)
    • getProperty

      public String getProperty(String key)
    • getDefaultContext

      protected abstract ExecutionContext getDefaultContext()
    • getConsole

      public abstract Console getConsole()