Package org.apache.geronimo.gshell.shell

Examples of org.apache.geronimo.gshell.shell.ShellContext


    public ShellContext getContext() {
        return delegate.getContext();
    }

    public Object execute(String s) throws Exception {
        ShellContext ctx = ShellContextHolder.get(true);
        try {
            ShellContextHolder.set(getContext());
            return delegate.execute(s);
        } finally {
            ShellContextHolder.set(ctx);
View Full Code Here


            ShellContextHolder.set(ctx);
        }
    }

    public Object execute(String s, Object[] objects) throws Exception {
        ShellContext ctx = ShellContextHolder.get(true);
        try {
            ShellContextHolder.set(getContext());
            return delegate.execute(s, objects);
        } finally {
            ShellContextHolder.set(ctx);
View Full Code Here

            ShellContextHolder.set(ctx);
        }
    }

    public Object execute(Object... objects) throws Exception {
        ShellContext ctx = ShellContextHolder.get(true);
        try {
            ShellContextHolder.set(getContext());
            return delegate.execute(objects);
        } finally {
            ShellContextHolder.set(ctx);
View Full Code Here

    public boolean isInteractive() {
        return delegate.isInteractive();
    }

    public void run(Object... objects) throws Exception {
        ShellContext ctx = ShellContextHolder.get(true);
        try {
            ShellContextHolder.set(getContext());
            delegate.run(objects);
        } finally {
            ShellContextHolder.set(ctx);
View Full Code Here

            }

            log.debug("Executing alias: {}", buff);

            final Shell shell = ShellContextHolder.get().getShell();
            ShellContext shellContext = new ShellContext() {
                public Shell getShell() {
                    return shell;
                }
                public IO getIo() {
                    return context.getIo();
View Full Code Here

            }
        }
    }

    private void println(String st) {
        ShellContext ctx = ShellContextHolder.get(true);
        if (ctx != null) {
            ctx.getIo().out.println(st);
        } else {
            System.out.println(st);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.gshell.shell.ShellContext

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.