Uses of Interface
org.microbean.interceptor.InterceptorMethod
-
-
Uses of InterceptorMethod in org.microbean.interceptor
Methods in org.microbean.interceptor that return InterceptorMethod Modifier and Type Method Description static InterceptorMethod
InterceptorMethod. of(MethodHandle receiverlessOrBoundMethodHandle)
static InterceptorMethod
InterceptorMethod. of(MethodHandle mh, Supplier<?> receiverSupplier)
Returns a newInterceptorMethod
that adapts the suppliedMethodHandle
and the suppliedSupplier
of its receiver.static InterceptorMethod
InterceptorMethod. of(Method staticMethod)
static InterceptorMethod
InterceptorMethod. of(Method m, Supplier<?> targetSupplier)
Returns a newInterceptorMethod
that adapts the suppliedMethod
and the suppliedSupplier
of its receiver.Method parameters in org.microbean.interceptor with type arguments of type InterceptorMethod Modifier and Type Method Description static InterceptionFunction
Interceptions. ofConstruction(Collection<? extends InterceptorMethod> interceptorMethods, Constructor<?> constructor)
Returns anInterceptionFunction
whoseapply(Object...)
method will invoke all suppliedInterceptorMethod
s in encounter order before invoking the suppliedConstructor
'snewInstance(Object...)
method.static InterceptionFunction
Interceptions. ofConstruction(Collection<? extends InterceptorMethod> interceptorMethods, 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 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 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 InterceptionFunction
Interceptions. ofInvocation(Collection<? extends InterceptorMethod> interceptorMethods, 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 InterceptionFunction
Interceptions. ofInvocation(Collection<? extends InterceptorMethod> interceptorMethods, 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 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 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()
.static Runnable
Interceptions. ofLifecycleEvent(Collection<? extends InterceptorMethod> interceptorMethods, Supplier<?> targetBootstrap)
Returns aRunnable
whoserun()
method will invoke all suppliedInterceptorMethod
s in encounter order.static Runnable
Interceptions. ofLifecycleEvent(Collection<? extends InterceptorMethod> interceptorMethods, Supplier<?> targetBootstrap, Supplier<? extends Set<Annotation>> interceptorBindingsBootstrap)
Returns aRunnable
whoserun()
method will invoke all suppliedInterceptorMethod
s in encounter order.Constructor parameters in org.microbean.interceptor with type arguments of type InterceptorMethod Constructor Description Chain(List<? extends InterceptorMethod> interceptorMethods, Constructor<?> terminalConstructor)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a newChain
for around-construct interceptions.Chain(List<? extends InterceptorMethod> interceptorMethods, Constructor<?> terminalConstructor, Supplier<? extends Object[]> argumentsSupplier)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a newChain
for around-construct interceptions.Chain(List<? extends InterceptorMethod> interceptorMethods, Function<? super Object[],?> terminalFunction, Supplier<? extends Object[]> argumentsSupplier)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a newChain
for around-construct interceptions.Chain(List<? extends InterceptorMethod> interceptorMethods, Supplier<?> targetSupplier)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a newChain
for lifecycle method interceptions.Chain(List<? extends InterceptorMethod> interceptorMethods, Supplier<?> targetSupplier, Method terminalMethod)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a newChain
for around-invoke interceptions.Chain(List<? extends InterceptorMethod> interceptorMethods, Supplier<?> targetSupplier, Method terminalMethod, Supplier<? extends Object[]> argumentsSupplier)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a newChain
for around-invoke interceptions.Chain(List<? extends InterceptorMethod> interceptorMethods, Supplier<?> targetSupplier, Function<? super Object[],?> terminalFunction, boolean setTarget, Supplier<? extends Object[]> argumentsSupplier)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a newChain
for around-construct or around-invoke interceptions.
-