private static class MvcUriComponentsBuilder.ControllerMethodInvocationInterceptor extends java.lang.Object implements MethodInterceptor
Modifier and Type | Field and Description |
---|---|
private java.lang.Object[] |
argumentValues |
private java.lang.reflect.Method |
controllerMethod |
private java.lang.Class<?> |
controllerType |
private static java.lang.reflect.Method |
getArgumentValues |
private static java.lang.reflect.Method |
getControllerMethod |
private static java.lang.reflect.Method |
getControllerType |
Constructor and Description |
---|
ControllerMethodInvocationInterceptor(java.lang.Class<?> controllerType) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
intercept(java.lang.Object obj,
java.lang.reflect.Method method,
java.lang.Object[] args,
MethodProxy proxy) |
java.lang.Object |
invoke(MethodInvocation inv)
Implement this method to perform extra treatments before and
after the invocation.
|
private static final java.lang.reflect.Method getControllerMethod
private static final java.lang.reflect.Method getArgumentValues
private static final java.lang.reflect.Method getControllerType
private java.lang.reflect.Method controllerMethod
private java.lang.Object[] argumentValues
private java.lang.Class<?> controllerType
ControllerMethodInvocationInterceptor(java.lang.Class<?> controllerType)
public java.lang.Object intercept(java.lang.Object obj, java.lang.reflect.Method method, java.lang.Object[] args, MethodProxy proxy)
public java.lang.Object invoke(MethodInvocation inv) throws java.lang.Throwable
MethodInterceptor
Joinpoint.proceed()
.invoke
in interface MethodInterceptor
inv
- the method invocation joinpointJoinpoint.proceed()
;
might be intercepted by the interceptorjava.lang.Throwable
- if the interceptors or the target object
throws an exception