public abstract class Application extends Object implements Closeable
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
Application.ShutdownHookThread |
| Modifier | Constructor and Description |
|---|---|
protected |
Application()
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static Application |
currentApplication() |
protected abstract void |
doStart(String[] args) |
protected abstract void |
doStop() |
void |
run(String[] args)
Run the application as if it were in a standalone JVM.
|
void |
setName(String name) |
void |
start(String[] args)
Start the application.
|
void |
stop()
Stop the application.
|
public final void start(String[] args)
args - the command-line argumentsprotected abstract void doStart(String[] args)
public final void close()
close in interface Closeableclose in interface AutoCloseablepublic final void stop()
public static Application currentApplication()
protected abstract void doStop()
public void setName(String name)
public final void run(String[] args)
Copyright © 2020 JBoss by Red Hat. All rights reserved.