net.kldp.beat.action
Class ActionInvoker

java.lang.Object
  extended by net.kldp.beat.action.ActionInvoker

public class ActionInvoker
extends java.lang.Object


Field Summary
private  java.lang.Object action
           
private  java.lang.reflect.Method afterMethod
           
private  java.lang.reflect.Method beforeMethod
           
private  java.lang.reflect.Method resultBeforeMethod
           
 
Constructor Summary
ActionInvoker(java.lang.Object action)
           
 
Method Summary
private  void classifyMethods(java.lang.reflect.Method[] methods)
          Action클래스안에서의 특별한 메서드들을 분류합니다.
 java.lang.String execute()
           
 void executeAfter()
           
 void executeBefore()
           
 void executeBeforeResult()
           
private  void invokeMethod(java.lang.reflect.Method method)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

action

private java.lang.Object action

beforeMethod

private java.lang.reflect.Method beforeMethod

resultBeforeMethod

private java.lang.reflect.Method resultBeforeMethod

afterMethod

private java.lang.reflect.Method afterMethod
Constructor Detail

ActionInvoker

public ActionInvoker(java.lang.Object action)
Method Detail

classifyMethods

private void classifyMethods(java.lang.reflect.Method[] methods)
Action클래스안에서의 특별한 메서드들을 분류합니다. 이들 메서드는 Before, BeforResult, After를 선언한 메서드입니다.

Parameters:
methods -

execute

public java.lang.String execute()
                         throws ActionExecuteException
Throws:
ActionExecuteException

executeBefore

public void executeBefore()
                   throws ActionExecuteException
Throws:
ActionExecuteException

executeAfter

public void executeAfter()
                  throws ActionExecuteException
Throws:
ActionExecuteException

executeBeforeResult

public void executeBeforeResult()
                         throws ActionExecuteException
Throws:
ActionExecuteException

invokeMethod

private void invokeMethod(java.lang.reflect.Method method)
                   throws ActionExecuteException
Throws:
ActionExecuteException