Interface InterceptionsApplicator<I>

Type Parameters:
I - the type of contextual instance

InterceptionsApplicator implementations are typically used to implement the Factory.create(Request) method, together with PostInitializers, Initializers and Producers.

All Superinterfaces:
BiFunction<I,Request<I>,I>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

An interface whose implementations install around-invoke interceptions.
Author:
Laird Nelson
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(I uninterceptedInstance, Request<I> r)
    Installs around-invoke method interceptions on the supplied contextual instance, which is presumed to have been fully initialized, and returns the result.

    Methods inherited from interface java.util.function.BiFunction

    andThen
  • Method Details

    • apply

      I apply(I uninterceptedInstance, Request<I> r)
      Installs around-invoke method interceptions on the supplied contextual instance, which is presumed to have been fully initialized, and returns the result.
      Specified by:
      apply in interface BiFunction<I,Request<I>,I>
      Parameters:
      uninterceptedInstance - a fully initialized contextual instance that needs to have certain of its methods intercepted; must not be null
      r - a Request which may be used to acquire supporting contextual references; must not be null
      Returns:
      the supplied contextual instance, a copy of it, or a proxy wrapping it; never null
      Throws:
      NullPointerException - if any argument is null