Uses of Interface
org.springframework.util.function.ThrowingFunction
Package
Description
AOT support for bean factories.
Useful generic
java.util.function
helper classes.-
Uses of ThrowingFunction in org.springframework.beans.factory.aot
Modifier and TypeMethodDescriptionBeanInstanceSupplier.withGenerator
(ThrowingFunction<RegisteredBean, T> generator) Return a newBeanInstanceSupplier
instance that uses the specifiedgenerator
function to instantiate the underlying bean. -
Uses of ThrowingFunction in org.springframework.util.function
Modifier and TypeMethodDescriptionstatic <T,
R> ThrowingFunction<T, R> ThrowingFunction.of
(ThrowingFunction<T, R> function) Lambda friendly convenience method that can be used to create aThrowingFunction
where 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 aThrowingFunction
where theapply(Object)
method wraps any thrown checked exceptions using the givenexceptionWrapper
.default ThrowingFunction<T,
R> ThrowingFunction.throwing
(BiFunction<String, Exception, RuntimeException> exceptionWrapper) Return a newThrowingFunction
where theapply(Object)
method wraps any thrown checked exceptions using the givenexceptionWrapper
.Modifier and TypeMethodDescriptionstatic <T,
R> ThrowingFunction<T, R> ThrowingFunction.of
(ThrowingFunction<T, R> function) Lambda friendly convenience method that can be used to create aThrowingFunction
where 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 aThrowingFunction
where theapply(Object)
method wraps any thrown checked exceptions using the givenexceptionWrapper
.