001 package org.crsh.command;
002
003 import groovy.lang.Closure;
004
005 /** @author <a href="mailto:julien.viet@exoplatform.com">Julien Viet</a> */
006 public class InvokeCommandClosure extends Closure {
007
008 /** . */
009 private final ShellCommand command;
010
011 public InvokeCommandClosure(Object owner, ShellCommand command) {
012 super(owner);
013
014 //
015 this.command = command;
016 }
017
018 @Override
019 public Object call(Object[] args) {
020 throw new UnsupportedOperationException();
021 }
022 }