|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.kldp.beat.action.ActionInvoker
public class ActionInvoker
컨트롤러 클래스를 실행하는 클래스 입니다.
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()
컨트롤러 클래스의 execute 메서드를 실행합니다. |
void |
executeAfter()
컨트롤러 클래스에 @After 어노테이션으로 설정되어 있는 메서드를 실행합니다. |
void |
executeBefore()
컨트롤러 클래스에 @Before 어노테이션으로 설정되어 있는 메서드를 실행합니다. |
void |
executeBeforeResult()
컨트롤러 클래스에 @BeforeResult 어노테이션으로 설정되어 있는 메서드를 실행합니다. |
private void |
invokeMethod(java.lang.reflect.Method method)
리턴값이 void인 메서드를 실행합니다. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.Object action
private java.lang.reflect.Method beforeMethod
private java.lang.reflect.Method resultBeforeMethod
private java.lang.reflect.Method afterMethod
Constructor Detail |
---|
public ActionInvoker(java.lang.Object action)
Method Detail |
---|
private void classifyMethods(java.lang.reflect.Method[] methods)
methods
- public java.lang.String execute() throws ActionExecuteException
ActionExecuteException
public void executeBefore() throws ActionExecuteException
ActionExecuteException
public void executeAfter() throws ActionExecuteException
ActionExecuteException
public void executeBeforeResult() throws ActionExecuteException
ActionExecuteException
private void invokeMethod(java.lang.reflect.Method method) throws ActionExecuteException
method
-
ActionExecuteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |