|
Forge - Parent 1.0.6-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.forge.shell.events.Shutdown
public final class Shutdown
Fired as a signal to the shell that it should shut down now.
For example:
@Inject Event<Shutdown> shutdown;
...
shutdown.fire(new Shutdown(Shutdown.Status.NORMAL));
Nested Class Summary | |
---|---|
static class |
Shutdown.Status
Status of the shell during shutdown. |
Constructor Summary | |
---|---|
Shutdown()
Defaults to Shutdown.Status.NORMAL |
|
Shutdown(Shutdown.Status status)
Inform the shell to shut down with the given Shutdown.Status , now. |
Method Summary | |
---|---|
Shutdown.Status |
getStatus()
Get the status with which the shell should shut down. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Shutdown()
Shutdown.Status.NORMAL
public Shutdown(Shutdown.Status status)
Shutdown.Status
, now.
Method Detail |
---|
public Shutdown.Status getStatus()
|
Forge - Parent 1.0.6-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |