For example:
@Inject Event<Shutdown> shutdown; ... shutdown.fire(new Shutdown(Shutdown.Status.NORMAL)); @author Lincoln Baxter, III
@Inject Event<Shutdown> shutdown; ... shutdown.fire(new Shutdown(Shutdown.Status.NORMAL));
6162636465666768697071
this.numEOFs++; } else { shell.println("exit"); shutdown.fire(new Shutdown(Status.NORMAL)); } return true; } return false; }
109110111112113114115116
} public void observeReinitialize(@Observes final ReinitializeEnvironment event, final Shell shell) { workingDir = shell.getCurrentDirectory().getUnderlyingResourceObject(); manager.fireEvent(new Shutdown()); restartRequested = true; }
649650651652653654655656657658659
this.numEOF++; } else { print("exit"); shutdown.fire(new Shutdown()); } reader.flush(); } else {
659660661662663664665666667668669
48495051525354
private Event<Shutdown> shutdown; @DefaultCommand public void exit() { shutdown.fire(new Shutdown(Shutdown.Status.NORMAL)); }
7677787980818283848586
this.numEOFs++; } else { shell.print("exit"); shutdown.fire(new Shutdown(Status.NORMAL)); } return true; } return false; }
122123124125126127128129
103104105106107108109110
125126127128129130131132
155156157158159160161162