Interface InterceptionsApplicator<I>
- Type Parameters:
I
- the type of contextual instanceInterceptionsApplicator
implementations are typically used to implement theFactory.create(Request)
method, together withPostInitializer
s,Initializer
s andProducer
s.
- 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:
apply
in interfaceBiFunction<I,
Request<I>, I> - Parameters:
uninterceptedInstance
- a fully initialized contextual instance that needs to have certain of its methods intercepted; must not benull
r
- aRequest
which 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
-