org.apache.commons.jexl.util
Class AbstractExecutor

java.lang.Object
  extended byorg.apache.commons.jexl.util.AbstractExecutor
Direct Known Subclasses:
GetExecutor, PropertyExecutor

public abstract class AbstractExecutor
extends Object

Abstract class that is used to execute an arbitrary method that is in introspected. This is the superclass for the GetExecutor and PropertyExecutor.

Version:
$Id: AbstractExecutor.java,v 1.3 2004/02/28 13:45:21 yoavs Exp $

Field Summary
protected  Method method
          Method to be executed.
protected  Log rlog
           
 
Constructor Summary
AbstractExecutor()
           
 
Method Summary
abstract  Object execute(Object o)
          Execute method against context.
 Method getMethod()
           
 boolean isAlive()
          Tell whether the executor is alive by looking at the value of the method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rlog

protected Log rlog

method

protected Method method
Method to be executed.

Constructor Detail

AbstractExecutor

public AbstractExecutor()
Method Detail

execute

public abstract Object execute(Object o)
                        throws IllegalAccessException,
                               InvocationTargetException
Execute method against context.

Throws:
IllegalAccessException
InvocationTargetException

isAlive

public boolean isAlive()
Tell whether the executor is alive by looking at the value of the method.


getMethod

public Method getMethod()


Copyright © 2003-2004 The Apache Software Foundation. All Rights Reserved.