public interface Interceptor
proceed
method
and after that it can perform post-call actions if needed.Modifier and Type | Method and Description |
---|---|
void |
intercept(InvocationContext invocationContext)
Performs pre and post invocation actions for the target object call.
|
void intercept(InvocationContext invocationContext) throws java.lang.Exception
invocationContext
- provides the info about this call. Also calls interceptors in
turn according to their order in the chain. invocationContext provides access to the return value
and thrown exceptions of this call.java.lang.Exception