Interface Interceptor.Chain<V>

Type Parameters:
V - the return value
All Known Implementing Classes:
Invocation
Enclosing interface:
Interceptor

public static interface Interceptor.Chain<V>
Represents the next in line for interception, terminating with a call to the wrapped service provider.
  • Method Summary

    Modifier and Type
    Method
    Description
    proceed(Object[] args)
    Call the next interceptor in line, or finishing with the call to the service provider being intercepted.
  • Method Details

    • proceed

      V proceed(Object[] args)
      Call the next interceptor in line, or finishing with the call to the service provider being intercepted. Note that that arguments are passed by reference to each interceptor ultimately leading up to the final call to the underlying intercepted target. Callers can mutate the arguments passed directly on the provided array instance.
      Parameters:
      args - the arguments passed
      Returns:
      the result of the call
      Throws:
      InvocationException - if there are errors during invocation chain processing