Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mandarax.eca
Class JAction  view JAction download JAction.java

java.lang.Object
  extended byorg.mandarax.eca.AbstractAction
      extended byorg.mandarax.eca.JAction
All Implemented Interfaces:
Action, ECALog

public class JAction
extends AbstractAction

Implementation of the action interface based on java reflection. This is a very general implementation: The action comprises a method, and performing the action means send the method to the target with the action parameters. Using appropriate targets and parameters, almost everything can be done using JActions.

Version:
0.1

Field Summary
private  java.lang.reflect.Method method
           
 
Fields inherited from class org.mandarax.eca.AbstractAction
 
Fields inherited from interface org.mandarax.eca.ECALog
LOG_ECA
 
Constructor Summary
JAction()
           
 
Method Summary
 java.lang.reflect.Method getMethod()
          Get the java method.
 void perform(java.lang.Object[] parameters)
          Perform the action using the parameters.
 void setMethod(java.lang.reflect.Method method)
          Set a java method.
 
Methods inherited from class org.mandarax.eca.AbstractAction
getTarget, setTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

method

private java.lang.reflect.Method method
Constructor Detail

JAction

public JAction()
Method Detail

getMethod

public java.lang.reflect.Method getMethod()
Get the java method.


setMethod

public void setMethod(java.lang.reflect.Method method)
Set a java method.


perform

public void perform(java.lang.Object[] parameters)
             throws ActionException
Perform the action using the parameters.