Uses of Interface
org.microbean.interceptor.InterceptionFunction
-
Uses of InterceptionFunction in org.microbean.interceptor
Methods in org.microbean.interceptor that return InterceptionFunctionModifier and TypeMethodDescriptionstatic final InterceptionFunction
Interceptions.ofConstruction
(Collection<? extends InterceptorMethod> interceptorMethods, MethodHandles.Lookup lookup, Constructor<?> constructor) Returns anInterceptionFunction
whoseapply(Object...)
method will invoke all suppliedInterceptorMethod
s in encounter order before invoking the suppliedConstructor
'snewInstance(Object...)
method.static final InterceptionFunction
Interceptions.ofConstruction
(Collection<? extends InterceptorMethod> interceptorMethods, MethodHandles.Lookup lookup, Constructor<?> constructor, Supplier<? extends Set<Annotation>> interceptorBindingsBootstrap) Returns anInterceptionFunction
whoseapply(Object...)
method will invoke all suppliedInterceptorMethod
s in encounter order before invoking the suppliedConstructor
'snewInstance(Object...)
method.static final InterceptionFunction
Interceptions.ofConstruction
(Collection<? extends InterceptorMethod> interceptorMethods, BiFunction<? super Object, ? super Object[], ?> terminalBiFunction) Returns anInterceptionFunction
whoseapply(Object...)
method will invoke all suppliedInterceptorMethod
s in encounter order before invoking the suppliedBiFunction
'sapply(Object, Object[])
method withnull
(the return value ofInvocationContext.getTarget()
, which will always benull
in this scenario) and the return value of an invocation ofInvocationContext.getParameters()
.static final InterceptionFunction
Interceptions.ofConstruction
(Collection<? extends InterceptorMethod> interceptorMethods, BiFunction<? super Object, ? super Object[], ?> terminalBiFunction, Supplier<? extends Set<Annotation>> interceptorBindingsBootstrap) Returns anInterceptionFunction
whoseapply(Object...)
method will invoke all suppliedInterceptorMethod
s in encounter order before invoking the suppliedBiFunction
'sapply(Object Object[])
method withnull
(the return value ofInvocationContext.getTarget()
, which will always benull
in this scenario) and the return value of an invocation ofInvocationContext.getParameters()
.static final InterceptionFunction
Interceptions.ofInvocation
(Collection<? extends InterceptorMethod> interceptorMethods, MethodHandles.Lookup lookup, Method method, Supplier<?> targetBootstrap) Returns anInterceptionFunction
whoseapply(Object...)
method will invoke all suppliedInterceptorMethod
s in encounter order before invoking the suppliedMethod
'sinvoke(Object, Object...)
method with the return value ofInvocationContext.getTarget()
, and with the return value ofInvocationContext.getParameters()
.static final InterceptionFunction
Interceptions.ofInvocation
(Collection<? extends InterceptorMethod> interceptorMethods, MethodHandles.Lookup lookup, Method method, Supplier<?> targetBootstrap, Supplier<? extends Set<Annotation>> interceptorBindingsBootstrap) Returns anInterceptionFunction
whoseapply(Object...)
method will invoke all suppliedInterceptorMethod
s in encounter order before invoking the suppliedMethod
'sinvoke(Object, Object...)
method with the return value ofInvocationContext.getTarget()
, and with the return value ofInvocationContext.getParameters()
.static final InterceptionFunction
Interceptions.ofInvocation
(Collection<? extends InterceptorMethod> interceptorMethods, BiFunction<? super Object, ? super Object[], ?> terminalBiFunction, Supplier<?> targetBootstrap) Returns anInterceptionFunction
whoseapply(Object...)
method will invoke all suppliedInterceptorMethod
s in encounter order before invoking the suppliedBiFunction
'sapply(Object Object[])
method with the return value ofInvocationContext.getTarget()
, and with the return value ofInvocationContext.getParameters()
.static final InterceptionFunction
Interceptions.ofInvocation
(Collection<? extends InterceptorMethod> interceptorMethods, BiFunction<? super Object, ? super Object[], ?> terminalBiFunction, Supplier<?> targetBootstrap, Supplier<? extends Set<Annotation>> interceptorBindingsBootstrap) Returns anInterceptionFunction
whoseapply(Object...)
method will invoke all suppliedInterceptorMethod
s in encounter order before invoking the suppliedBiFunction
'sapply(Object Object[])
method with the return value ofInvocationContext.getTarget()
, and with the return value ofInvocationContext.getParameters()
.