Uses of Interface
org.microbean.interceptor.InterceptorMethod
-
Uses of InterceptorMethod in org.microbean.interceptor
Methods in org.microbean.interceptor that return InterceptorMethodModifier and TypeMethodDescriptionstatic InterceptorMethodInterceptorMethod.of(MethodHandle receiverlessOrBoundMethodHandle) static InterceptorMethodInterceptorMethod.of(MethodHandle mh, Supplier<?> receiverSupplier) Returns a newInterceptorMethodthat adapts the suppliedMethodHandleand the suppliedSupplierof its receiver.static InterceptorMethodInterceptorMethod.of(MethodHandles.Lookup lookup, Method staticMethod) static InterceptorMethodInterceptorMethod.of(MethodHandles.Lookup lookup, Method m, Supplier<?> targetSupplier) Returns a newInterceptorMethodthat adapts the suppliedMethodand the suppliedSupplierof its receiver.Method parameters in org.microbean.interceptor with type arguments of type InterceptorMethodModifier and TypeMethodDescriptionstatic final InterceptionFunctionInterceptions.ofConstruction(Collection<? extends InterceptorMethod> interceptorMethods, MethodHandles.Lookup lookup, Constructor<?> constructor) Returns anInterceptionFunctionwhoseapply(Object...)method will invoke all suppliedInterceptorMethods in encounter order before invoking the suppliedConstructor'snewInstance(Object...)method.static final InterceptionFunctionInterceptions.ofConstruction(Collection<? extends InterceptorMethod> interceptorMethods, MethodHandles.Lookup lookup, Constructor<?> constructor, Supplier<? extends Set<Annotation>> interceptorBindingsBootstrap) Returns anInterceptionFunctionwhoseapply(Object...)method will invoke all suppliedInterceptorMethods in encounter order before invoking the suppliedConstructor'snewInstance(Object...)method.static final InterceptionFunctionInterceptions.ofConstruction(Collection<? extends InterceptorMethod> interceptorMethods, BiFunction<? super Object, ? super Object[], ?> terminalBiFunction) Returns anInterceptionFunctionwhoseapply(Object...)method will invoke all suppliedInterceptorMethods in encounter order before invoking the suppliedBiFunction'sapply(Object, Object[])method withnull(the return value ofInvocationContext.getTarget(), which will always benullin this scenario) and the return value of an invocation ofInvocationContext.getParameters().static final InterceptionFunctionInterceptions.ofConstruction(Collection<? extends InterceptorMethod> interceptorMethods, BiFunction<? super Object, ? super Object[], ?> terminalBiFunction, Supplier<? extends Set<Annotation>> interceptorBindingsBootstrap) Returns anInterceptionFunctionwhoseapply(Object...)method will invoke all suppliedInterceptorMethods in encounter order before invoking the suppliedBiFunction'sapply(Object Object[])method withnull(the return value ofInvocationContext.getTarget(), which will always benullin this scenario) and the return value of an invocation ofInvocationContext.getParameters().static final InterceptionFunctionInterceptions.ofInvocation(Collection<? extends InterceptorMethod> interceptorMethods, MethodHandles.Lookup lookup, Method method, Supplier<?> targetBootstrap) Returns anInterceptionFunctionwhoseapply(Object...)method will invoke all suppliedInterceptorMethods 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 InterceptionFunctionInterceptions.ofInvocation(Collection<? extends InterceptorMethod> interceptorMethods, MethodHandles.Lookup lookup, Method method, Supplier<?> targetBootstrap, Supplier<? extends Set<Annotation>> interceptorBindingsBootstrap) Returns anInterceptionFunctionwhoseapply(Object...)method will invoke all suppliedInterceptorMethods 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 InterceptionFunctionInterceptions.ofInvocation(Collection<? extends InterceptorMethod> interceptorMethods, BiFunction<? super Object, ? super Object[], ?> terminalBiFunction, Supplier<?> targetBootstrap) Returns anInterceptionFunctionwhoseapply(Object...)method will invoke all suppliedInterceptorMethods 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 InterceptionFunctionInterceptions.ofInvocation(Collection<? extends InterceptorMethod> interceptorMethods, BiFunction<? super Object, ? super Object[], ?> terminalBiFunction, Supplier<?> targetBootstrap, Supplier<? extends Set<Annotation>> interceptorBindingsBootstrap) Returns anInterceptionFunctionwhoseapply(Object...)method will invoke all suppliedInterceptorMethods 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 RunnableInterceptions.ofLifecycleEvent(Collection<? extends InterceptorMethod> interceptorMethods, Supplier<?> targetBootstrap) Returns aRunnablewhoserun()method will invoke all suppliedInterceptorMethods in encounter order.static final RunnableInterceptions.ofLifecycleEvent(Collection<? extends InterceptorMethod> interceptorMethods, Supplier<?> targetBootstrap, Supplier<? extends Set<Annotation>> interceptorBindingsBootstrap) Returns aRunnablewhoserun()method will invoke all suppliedInterceptorMethods in encounter order.