/** * Associate the term with a session. * @param session the session to set * @return a reference to this, so the API can be used fluently */ public io.vertx.rxjava.ext.shell.term.Term setSession(io.vertx.rxjava.ext.shell.session.Session session) { io.vertx.rxjava.ext.shell.term.Term ret = io.vertx.rxjava.ext.shell.term.Term.newInstance(delegate.setSession(session.getDelegate())); return ret; }
/** * Associate the term with a session. * @param session the session to set * @return a reference to this, so the API can be used fluently */ public io.vertx.rxjava.ext.shell.term.Term setSession(io.vertx.rxjava.ext.shell.session.Session session) { io.vertx.rxjava.ext.shell.term.Term ret = io.vertx.rxjava.ext.shell.term.Term.newInstance(delegate.setSession(session.getDelegate())); return ret; }
public ShellImpl(Term term, InternalCommandManager commandManager) { session.put("vert.x-command-manager", commandManager); this.id = UUID.randomUUID().toString(); this.jobController = new JobControllerImpl(); this.commandManager = commandManager; this.closedFuture = Future.future(); this.term = term; if (term != null) { term.setSession(session); jobController.foregroundUpdatedHandler(job -> { if (job == null) { readline(); } }); } }