Class CommandSupport<Config extends ApplicationConfiguration,Context extends ApplicationContext<Config,Context>>
- java.lang.Object
-
- org.nuiton.jaxx.runtime.application.command.CommandSupport<Config,Context>
-
- Direct Known Subclasses:
WithMainUICommandSupport
public abstract class CommandSupport<Config extends ApplicationConfiguration,Context extends ApplicationContext<Config,Context>> extends Object
Support for command line actions.- Since:
- 7.0
- Author:
- Tony Chemit - dev@tchemit.fr
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classCommandSupport.CommandLineActionWorker
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.logging.log4j.Loggerlog
-
Constructor Summary
Constructors Constructor Description CommandSupport()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected ConfiggetConfig()ContextgetContext()protected voidlaunchAction(String title, Runnable target)abstract voidrun()voidstart()
-
-
-
Method Detail
-
run
public abstract void run() throws InterruptedException- Throws:
InterruptedException
-
start
public final void start() throws InterruptedException- Throws:
InterruptedException
-
getConfig
protected final Config getConfig()
-
launchAction
protected final void launchAction(String title, Runnable target) throws InterruptedException
- Throws:
InterruptedException
-
getContext
public Context getContext()
-
-