org.apache.velocity.runtime.parser.node

Class AbstractExecutor

Known Direct Subclasses:
GetExecutor, PropertyExecutor

public abstract class AbstractExecutor
extends java.lang.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.10 2001/10/22 03:53:25 jon Exp $

Author:
Jason van Zyl

Field Summary

protected Method
method
Method to be executed.
protected RuntimeServices
rsvc

Method Summary

Object
execute(Object o, InternalContextAdapter context)
Execute method against context.
boolean
isAlive()
Tell whether the executor is alive by looking at the value of the method.

Field Details

method

protected Method method
Method to be executed.


rsvc

protected RuntimeServices rsvc

Method Details

execute

public Object execute(Object o,
                      InternalContextAdapter context)
            throws IllegalAccessException,
                   MethodInvocationException
Execute method against context.


isAlive

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


Copyright © 2003 Apache Software Foundation. All Rights Reserved.