@FunctionalInterface
public interface InterceptionHandler
Modifier and Type | Method and Description |
---|---|
default InterceptionHandler |
andThen(InterceptionHandler other)
Combines this interception with another one.
|
static InterceptionHandler |
delegate()
Returns a handler that delegates the intercepted method to the target.
|
java.lang.Object |
intercept(InterceptionContext context)
Intercepts the method call.
|
java.lang.Object intercept(InterceptionContext context) throws java.lang.Throwable
context
- the context of the interceptionnull
if the method is void.java.lang.Throwable
- if any error occursdefault InterceptionHandler andThen(InterceptionHandler other)
other
- the other interception to execute after thisstatic InterceptionHandler delegate()