|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.easetech.easytest.interceptor.InternalSpringInterceptor
public class InternalSpringInterceptor
A internal implementation of the MethodInterceptor implementation that hides the implementation logic
of intercepting the method call from the user.
It always has an instance of MethodIntercepter whose
MethodIntercepter.intercept(Method, Object, Object[]) method is called internally.
The actual implementation of the MethodIntercepter is provided by the user as an attribute to the Intercept annotation.
If none is provided, then DefaultMethodIntercepter implementation is used.
| Field Summary | |
|---|---|
protected static org.slf4j.Logger |
LOG
An instance of logger associated with the test framework. |
| Constructor Summary | |
|---|---|
InternalSpringInterceptor()
|
|
| Method Summary | |
|---|---|
org.easetech.easytest.interceptor.MethodIntercepter |
getUserIntercepter()
Return an instance of MethodIntercepter. |
Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation)
Intercept the method with the advice |
void |
setUserIntercepter(org.easetech.easytest.interceptor.MethodIntercepter userIntercepter)
Set the user interceptor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.slf4j.Logger LOG
| Constructor Detail |
|---|
public InternalSpringInterceptor()
| Method Detail |
|---|
public Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
throws Throwable
invoke in interface org.aopalliance.intercept.MethodInterceptorinvocation -
Throwablepublic org.easetech.easytest.interceptor.MethodIntercepter getUserIntercepter()
MethodIntercepter. See the class javadocs for details.
public void setUserIntercepter(org.easetech.easytest.interceptor.MethodIntercepter userIntercepter)
userIntercepter - the userIntercepter to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||