org.crsh.command
Class GroovyCommand

java.lang.Object
  extended by groovy.lang.GroovyObjectSupport
      extended by org.crsh.command.GroovyCommand
All Implemented Interfaces:
groovy.lang.GroovyObject
Direct Known Subclasses:
CRaSHCommand

public abstract class GroovyCommand
extends groovy.lang.GroovyObjectSupport

A base command that should be subclasses by Groovy commands. For this matter it inherits the GroovyObjectSupport class.

Version:
$Revision$
Author:
Julien Viet

Constructor Summary
GroovyCommand()
           
 
Method Summary
protected abstract  CommandContext getContext()
           
 Object getProperty(String property)
           
 Object invokeMethod(String name, Object args)
           
 void setProperty(String property, Object newValue)
           
 
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

GroovyCommand

public GroovyCommand()
Method Detail

getContext

protected abstract CommandContext getContext()

invokeMethod

public final Object invokeMethod(String name,
                                 Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject
Overrides:
invokeMethod in class groovy.lang.GroovyObjectSupport

getProperty

public final Object getProperty(String property)
Specified by:
getProperty in interface groovy.lang.GroovyObject
Overrides:
getProperty in class groovy.lang.GroovyObjectSupport

setProperty

public final void setProperty(String property,
                              Object newValue)
Specified by:
setProperty in interface groovy.lang.GroovyObject
Overrides:
setProperty in class groovy.lang.GroovyObjectSupport


Copyright © 2012 eXo Platform SAS. All Rights Reserved.