private static class MvcUriComponentsBuilder.ControllerMethodInvocationInterceptor extends java.lang.Object implements MethodInterceptor, MvcUriComponentsBuilder.MethodInvocationInfo
Modifier and Type | Field and Description |
---|---|
private java.lang.Object[] |
argumentValues |
private java.lang.reflect.Method |
controllerMethod |
private java.lang.Class<?> |
controllerType |
Constructor and Description |
---|
ControllerMethodInvocationInterceptor(java.lang.Class<?> controllerType) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
getArgumentValues()
Return the argument values.
|
java.lang.reflect.Method |
getControllerMethod()
Return the controller method.
|
java.lang.Class<?> |
getControllerType()
Return the controller types.
|
private static <T> T |
initProxy(java.lang.Class<?> controllerType,
MvcUriComponentsBuilder.ControllerMethodInvocationInterceptor interceptor) |
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 final java.lang.Class<?> controllerType
@Nullable private java.lang.reflect.Method controllerMethod
@Nullable private java.lang.Object[] argumentValues
ControllerMethodInvocationInterceptor(java.lang.Class<?> controllerType)
@Nullable public java.lang.Object intercept(java.lang.Object obj, java.lang.reflect.Method method, java.lang.Object[] args, @Nullable MethodProxy proxy)
@Nullable 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 exceptionpublic java.lang.Class<?> getControllerType()
MvcUriComponentsBuilder.MethodInvocationInfo
getControllerType
in interface MvcUriComponentsBuilder.MethodInvocationInfo
public java.lang.reflect.Method getControllerMethod()
MvcUriComponentsBuilder.MethodInvocationInfo
getControllerMethod
in interface MvcUriComponentsBuilder.MethodInvocationInfo
public java.lang.Object[] getArgumentValues()
MvcUriComponentsBuilder.MethodInvocationInfo
getArgumentValues
in interface MvcUriComponentsBuilder.MethodInvocationInfo
private static <T> T initProxy(java.lang.Class<?> controllerType, @Nullable MvcUriComponentsBuilder.ControllerMethodInvocationInterceptor interceptor)