org.apache.commons.jexl.util

Class AbstractExecutor

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.

Since: 1.0

Version: $Id: AbstractExecutor.java 398171 2006-04-29 14:57:29Z dion $

Field Summary
protected Methodmethod
Method to be executed.
protected Logrlog
The executor instance log.
Method Summary
abstract Objectexecute(Object o)
Execute method against context.
MethodgetMethod()
Get the method to be executed.
booleanisAlive()
Tell whether the executor is alive by looking at the value of the method.

Field Detail

method

protected Method method
Method to be executed.

rlog

protected Log rlog
The executor instance log.

Method Detail

execute

public abstract Object execute(Object o)
Execute method against context.

Parameters: o The owner.

Returns: The return value.

Throws: IllegalAccessException Method is inaccessible. InvocationTargetException Method body throws an exception.

getMethod

public Method getMethod()
Get the method to be executed.

Returns: Method The method to be executed.

isAlive

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

Returns: boolean Whether the executor is alive.

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