|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.kldp.beat.action.InterceptorStack
public class InterceptorStack
액션에 정의된 인터셉터를 분류합니다. 이들 인터셉터들은 ActionService객체에서 요청되어 차례차례 실행됩니다.
Field Summary | |
---|---|
private java.util.Map<UserInterceptor,java.lang.annotation.Annotation> |
afterInterceptors
|
private java.lang.reflect.Method |
afterMethod
|
private java.util.Map<UserInterceptor,java.lang.annotation.Annotation> |
beforeInterceptors
|
private java.lang.reflect.Method |
beforeMethod
|
private Log |
logger
|
private java.lang.reflect.Method |
resultBeforeMethod
|
private java.util.List<Result> |
results
|
private java.util.Map<SystemInterceptor,java.lang.annotation.Annotation> |
systemInterceptors
|
Constructor Summary | |
---|---|
InterceptorStack(java.lang.Class<? extends java.lang.Object> actionClass)
|
Method Summary | |
---|---|
private void |
addResult(Result result)
Result를 추가합니다. |
private void |
classifyAnnotations(java.lang.annotation.Annotation annotation)
어노테이션들을 Result또는 인터셉터로 분류합니다. |
private void |
classifyInterceptors(java.lang.annotation.Annotation annotation)
인터셉터들을 분류합니다. |
private void |
classifyMethods(java.lang.reflect.Method[] methods)
Action클래스안에서의 특별한 메서드들을 분류합니다. |
java.util.Map<UserInterceptor,java.lang.annotation.Annotation> |
getAfterInterceptors()
액션이 정의한 사용자 후처리 인터셉터를 리턴합니다. |
java.lang.reflect.Method |
getAfterMethod()
After 메서드를 리턴합니다. |
java.util.Map<UserInterceptor,java.lang.annotation.Annotation> |
getBeforeInterceptors()
액션이 정의한 사용자 전처리 인터셉터를 리턴합니다. |
java.lang.reflect.Method |
getBeforeMethod()
Before 메서드를 리턴합니다. |
java.lang.reflect.Method |
getBeforeResultMethod()
BeforeResult 메서드를 리턴합니다. |
Result |
getResult(java.lang.String resultName)
|
java.util.List<Result> |
getResults()
정의된 Result를 리턴합니다. |
java.util.Map<SystemInterceptor,java.lang.annotation.Annotation> |
getSystemInterceptors()
액션이 정의한 시스템 인터셉터를 리턴합니다. |
boolean |
hasResults()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Log logger
private java.util.List<Result> results
private java.util.Map<UserInterceptor,java.lang.annotation.Annotation> beforeInterceptors
private java.util.Map<UserInterceptor,java.lang.annotation.Annotation> afterInterceptors
private java.util.Map<SystemInterceptor,java.lang.annotation.Annotation> systemInterceptors
private java.lang.reflect.Method beforeMethod
private java.lang.reflect.Method afterMethod
private java.lang.reflect.Method resultBeforeMethod
Constructor Detail |
---|
public InterceptorStack(java.lang.Class<? extends java.lang.Object> actionClass) throws ResultException
ResultException
Method Detail |
---|
private void classifyMethods(java.lang.reflect.Method[] methods)
methods
- private void classifyAnnotations(java.lang.annotation.Annotation annotation) throws ResultException
annotation
-
ResultException
private void addResult(Result result) throws ResultException
result
-
ResultException
private void classifyInterceptors(java.lang.annotation.Annotation annotation)
annotation
- public java.util.List<Result> getResults()
public boolean hasResults()
public Result getResult(java.lang.String resultName) throws ResultException
ResultException
public java.util.Map<SystemInterceptor,java.lang.annotation.Annotation> getSystemInterceptors()
public java.util.Map<UserInterceptor,java.lang.annotation.Annotation> getBeforeInterceptors()
public java.util.Map<UserInterceptor,java.lang.annotation.Annotation> getAfterInterceptors()
public java.lang.reflect.Method getBeforeMethod()
public java.lang.reflect.Method getAfterMethod()
public java.lang.reflect.Method getBeforeResultMethod()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |