public abstract class Application extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
static String |
APP_CLASS_NAME
The name of the generated application class
|
Modifier | Constructor and Description |
---|---|
protected |
Application()
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
awaitShutdown() |
void |
close() |
static Application |
currentApplication() |
protected abstract void |
doStart(String[] args) |
protected abstract void |
doStop() |
abstract String |
getName() |
boolean |
isStarted() |
void |
start(String[] args)
Start the application.
|
void |
stop()
Stop the application.
|
void |
stop(Runnable afterStopTask)
Stop the application.
|
public static final String APP_CLASS_NAME
public final void start(String[] args)
args
- the command-line argumentsprotected abstract void doStart(String[] args)
public final void close()
close
in interface Closeable
close
in interface AutoCloseable
public final void stop()
public final void stop(Runnable afterStopTask)
public static Application currentApplication()
protected abstract void doStop()
public abstract String getName()
public void awaitShutdown()
public boolean isStarted()
Copyright © 2021 JBoss by Red Hat. All rights reserved.