Package org.apache.geronimo.gshell

Examples of org.apache.geronimo.gshell.DefaultEnvironment


            sh.setErrorHandler(wrapErrorHandler(sh.getErrorHandler()));
        }
        this.io = new IO(new NoCloseInputStream(System.in),
                         new NoCloseOutputStream(System.out),
                         new NoCloseOutputStream(System.err));
        this.env = new DefaultEnvironment(new ProxyIO());
    }
View Full Code Here


      ctx.setBranding(branding);
      ctx.setLayoutManager(osgiLayoutManager.createLayoutManagerForShell(branding.getName()));
     
      // Would be nice to copy the env variables.. but can't cause it has imutable values
      // that the DefaultEnvironment tries to overwrite.
      Environment environment = new DefaultEnvironment(ctx.getIo(), new DefaultVariables());
      ctx.setEnvironment(environment);
          IOTargetSource.setIO(ctx.getIo());
          EnvironmentTargetSource.setEnvironment(environment);
      InteractiveShell interactiveShell = createInteractiveShell(ctx);
      if( args!=null && args.length>0 ) {
View Full Code Here

    private CountDownLatch frameworkStarted;

    public GShell(InteractiveShell shell) {
        this.shell = shell;
        this.io = new IO(System.in, System.out, System.err);
        this.env = new DefaultEnvironment(io);
    }
View Full Code Here

            sh.setErrorHandler(wrapErrorHandler(sh.getErrorHandler()));
        }
        this.io = new IO(new NoCloseInputStream(System.in),
                         new NoCloseOutputStream(System.out),
                         new NoCloseOutputStream(System.err));
        this.env = new DefaultEnvironment(new ProxyIO());
    }
View Full Code Here

    public void handle(Session session, ServerSessionContext context, OpenShellMessage message) throws Exception {
        // Setup the I/O context (w/o auto-flushing)
        context.io = new RemoteIO(session);
        // Setup shell environemnt
        context.env = new DefaultEnvironment(context.io);

        // Create a new shell instance
        context.shell = new DefaultRemoteShell(shellInfo, executor, context.env);

        //
View Full Code Here

            sh.setErrorHandler(wrapErrorHandler(sh.getErrorHandler()));
        }
        this.io = new IO(new NoCloseInputStream(System.in),
                         new NoCloseOutputStream(System.out),
                         new NoCloseOutputStream(System.err));
        this.env = new DefaultEnvironment(new ProxyIO());
    }
View Full Code Here

            sh.setErrorHandler(wrapErrorHandler(sh.getErrorHandler()));
        }
        this.io = new IO(new NoCloseInputStream(System.in),
                         new NoCloseOutputStream(System.out),
                         new NoCloseOutputStream(System.err));
        this.env = new DefaultEnvironment(new ProxyIO());
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.gshell.DefaultEnvironment

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.