Interface InterceptionsApplicator<I>
- Type Parameters:
I- the type of contextual instanceInterceptionsApplicatorimplementations are typically used to implement theFactory.create(Request)method, together withPostInitializers,Initializers andProducers.
- 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
Methods inherited from interface java.util.function.BiFunction
andThen
-
Method Details
-
apply
Installs around-invoke method interceptions on the supplied contextual instance, which is presumed to have been fully initialized, and returns the result.- Specified by:
applyin interfaceBiFunction<I,Request<I>, I> - Parameters:
uninterceptedInstance- a fully initialized contextual instance that needs to have certain of its methods intercepted; must not benullr- aRequestwhich may be used to acquire supporting contextual references; must not benull- Returns:
- the supplied contextual instance, a copy of it, or a proxy wrapping it; never
null - Throws:
NullPointerException- if any argument isnull
-