Uses of Interface
org.springframework.util.function.ThrowingFunction
Packages that use ThrowingFunction
Package
Description
AOT support for bean factories.
Useful generic
java.util.function helper classes.-
Uses of ThrowingFunction in org.springframework.beans.factory.aot
Methods in org.springframework.beans.factory.aot with parameters of type ThrowingFunctionModifier and TypeMethodDescriptionBeanInstanceSupplier.withGenerator(ThrowingFunction<RegisteredBean, T> generator) Return a newBeanInstanceSupplierinstance that uses the specifiedgeneratorfunction to instantiate the underlying bean. -
Uses of ThrowingFunction in org.springframework.util.function
Methods in org.springframework.util.function that return ThrowingFunctionModifier and TypeMethodDescriptionstatic <T,R> ThrowingFunction<T, R> ThrowingFunction.of(ThrowingFunction<T, R> function) Lambda friendly convenience method that can be used to create aThrowingFunctionwhere theapply(Object)method wraps any checked exception thrown by the supplied lambda expression or method reference.static <T,R> ThrowingFunction<T, R> ThrowingFunction.of(ThrowingFunction<T, R> function, BiFunction<String, Exception, RuntimeException> exceptionWrapper) Lambda friendly convenience method that can be used to create aThrowingFunctionwhere theapply(Object)method wraps any thrown checked exceptions using the givenexceptionWrapper.default ThrowingFunction<T,R> ThrowingFunction.throwing(BiFunction<String, Exception, RuntimeException> exceptionWrapper) Return a newThrowingFunctionwhere theapply(Object)method wraps any thrown checked exceptions using the givenexceptionWrapper.Methods in org.springframework.util.function with parameters of type ThrowingFunctionModifier and TypeMethodDescriptionstatic <T,R> ThrowingFunction<T, R> ThrowingFunction.of(ThrowingFunction<T, R> function) Lambda friendly convenience method that can be used to create aThrowingFunctionwhere theapply(Object)method wraps any checked exception thrown by the supplied lambda expression or method reference.static <T,R> ThrowingFunction<T, R> ThrowingFunction.of(ThrowingFunction<T, R> function, BiFunction<String, Exception, RuntimeException> exceptionWrapper) Lambda friendly convenience method that can be used to create aThrowingFunctionwhere theapply(Object)method wraps any thrown checked exceptions using the givenexceptionWrapper.