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));
136137138139140141142143
} public void observeReinitialize(@Observes final ReinitializeEnvironment event, final Shell shell) { workingDir = shell.getCurrentDirectory().getUnderlyingResourceObject(); manager.fireEvent(new Shutdown()); restartRequested = true; }
99100101102103104105106
659660661662663664665666667668669
this.numEOF++; } else { print("exit"); shutdown.fire(new Shutdown()); } reader.flush(); } else {
194195196197198199200201
167168169170171172173174
208209210211212213214215
32333435363738
private Event<Shutdown> shutdown; @DefaultCommand public void exit() { shutdown.fire(new Shutdown(Shutdown.Status.NORMAL)); }
646647648649650651652653654655656
6162636465666768697071
this.numEOFs++; } else { shell.print("exit"); shutdown.fire(new Shutdown(Status.NORMAL)); } return true; } return false; }