org.crsh.command
Class ClassCommand

java.lang.Object
  extended by groovy.lang.GroovyObjectSupport
      extended by org.crsh.command.GroovyCommand
          extended by org.crsh.command.BaseCommand<Void,Void>
              extended by org.crsh.command.ClassCommand
All Implemented Interfaces:
groovy.lang.GroovyObject, CommandInvoker<Void,Void>, ShellCommand

public abstract class ClassCommand
extends BaseCommand<Void,Void>

The class command is a specialization of the BaseCommand for simple command implementations.

Version:
$Revision$
Author:
Julien Viet

Constructor Summary
protected ClassCommand()
           
 
Method Summary
protected abstract  Object execute()
           
protected  void execute(InvocationContext<Void,Void> context)
           
 
Methods inherited from class org.crsh.command.BaseCommand
complete, createInvoker, describe, getConsumedType, getContext, getProducedType, getUnquoteArguments, invoke, readLine, readLine, setUnquoteArguments
 
Methods inherited from class org.crsh.command.GroovyCommand
getProperty, invokeMethod, setProperty
 
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, setMetaClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassCommand

protected ClassCommand()
Method Detail

execute

protected void execute(InvocationContext<Void,Void> context)
                throws ScriptException
Specified by:
execute in class BaseCommand<Void,Void>
Throws:
ScriptException

execute

protected abstract Object execute()
                           throws ScriptException
Throws:
ScriptException


Copyright © 2011 eXo Platform SAS. All Rights Reserved.