Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mercyblitz committed Jan 10, 2025
1 parent ebe4948 commit 5c4fa0a
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ public interface HandlerMethodInterceptor {
* @param request {@link WebRequest}
* @throws Exception if any error caused
*/
void beforeExecute(HandlerMethod handlerMethod, Object[] args, NativeWebRequest request) throws Exception;
default void beforeExecute(HandlerMethod handlerMethod, Object[] args, NativeWebRequest request) throws Exception {
}

/**
* Interception point after successful execution of a {@link HandlerMethod}.
Expand All @@ -50,7 +51,8 @@ public interface HandlerMethodInterceptor {
* @param request {@link WebRequest}
* @throws Exception if any error caused
*/
void afterExecute(HandlerMethod handlerMethod, Object[] args, @Nullable Object returnValue, @Nullable Throwable error,
NativeWebRequest request) throws Exception;
default void afterExecute(HandlerMethod handlerMethod, Object[] args, @Nullable Object returnValue, @Nullable Throwable error,
NativeWebRequest request) throws Exception {
}

}

0 comments on commit 5c4fa0a

Please sign in to comment.