Package org.springframework.shell.core

Examples of org.springframework.shell.core.ExitShellRequest


  private GenericApplicationContext ctx;

  public static void main(String[] args) throws IOException {
    sw.start();
    ExitShellRequest exitShellRequest;
    try {
      bootstrap = new Bootstrap(args);
      exitShellRequest = bootstrap.run();
    }
    catch (RuntimeException t) {
      throw t;
    }
    finally {
      HandlerUtils.flushAllHandlers(Logger.getLogger(""));
    }

    System.exit(exitShellRequest.getExitCode());
  }
View Full Code Here


  public ExitShellRequest run() {

    String[] commandsToExecuteAndThenQuit = commandLine.getShellCommandsToExecute();
    // The shell is used
    JLineShellComponent shell = ctx.getBean("shell", JLineShellComponent.class);
    ExitShellRequest exitShellRequest;

    if (null != commandsToExecuteAndThenQuit) {
      boolean successful = false;
      exitShellRequest = ExitShellRequest.FATAL_EXIT;
View Full Code Here

TOP

Related Classes of org.springframework.shell.core.ExitShellRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.