Interface Interceptor


@Contract public interface Interceptor
Implementors of this contract must be Named according to the Intercepted annotation they support.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Represents the next in line for interception, terminating with a call to the wrapped service provider.
  • Method Summary

    Modifier and Type
    Method
    Description
    <V> V
    proceed(io.helidon.inject.api.InvocationContext ctx, Interceptor.Chain<V> chain, Object... args)
    Called during interception of the target V.
  • Method Details

    • proceed

      <V> V proceed(io.helidon.inject.api.InvocationContext ctx, Interceptor.Chain<V> chain, Object... args)
      Called during interception of the target V. The implementation typically should finish with the call to Interceptor.Chain.proceed(java.lang.Object[]).
      Type Parameters:
      V - the return value type (or Void for void method elements)
      Parameters:
      ctx - the invocation context
      chain - the chain to call proceed on
      args - the arguments to the call
      Returns:
      the return value to the caller
      Throws:
      InvocationException - if there are errors during invocation chain processing