Uses of Interface
org.springframework.util.function.ThrowingSupplier
Package
Description
AOT support for bean factories.
Classes supporting the
org.springframework.beans.factory
package.Useful generic
java.util.function
helper classes.-
Uses of ThrowingSupplier in org.springframework.beans.factory.aot
Modifier and TypeClassDescriptionfinal class
SpecializedInstanceSupplier
that provides the factoryMethod
used to instantiate the underlying bean instance, if any.Modifier and TypeMethodDescriptionBeanInstanceSupplier.withGenerator
(ThrowingSupplier<T> generator) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of ThrowingSupplier in org.springframework.beans.factory.support
Modifier and TypeInterfaceDescriptioninterface
SpecializedSupplier
that can be set on aBeanDefinition
when details about theregistered bean
are needed to supply the instance.Modifier and TypeMethodDescriptionstatic <T> InstanceSupplier<T>
InstanceSupplier.using
(Method factoryMethod, ThrowingSupplier<T> supplier) Factory method to create anInstanceSupplier
from aThrowingSupplier
.static <T> InstanceSupplier<T>
InstanceSupplier.using
(ThrowingSupplier<T> supplier) Factory method to create anInstanceSupplier
from aThrowingSupplier
. -
Uses of ThrowingSupplier in org.springframework.util.function
Modifier and TypeMethodDescriptionstatic <T> ThrowingSupplier<T>
ThrowingSupplier.of
(ThrowingSupplier<T> supplier) Lambda friendly convenience method that can be used to create aThrowingSupplier
where theget()
method wraps any checked exception thrown by the supplied lambda expression or method reference.static <T> ThrowingSupplier<T>
ThrowingSupplier.of
(ThrowingSupplier<T> supplier, BiFunction<String, Exception, RuntimeException> exceptionWrapper) Lambda friendly convenience method that can be used to createThrowingSupplier
where theget()
method wraps any thrown checked exceptions using the givenexceptionWrapper
.default ThrowingSupplier<T>
ThrowingSupplier.throwing
(BiFunction<String, Exception, RuntimeException> exceptionWrapper) Return a newThrowingSupplier
where theget()
method wraps any thrown checked exceptions using the givenexceptionWrapper
.Modifier and TypeMethodDescriptionstatic <T> ThrowingSupplier<T>
ThrowingSupplier.of
(ThrowingSupplier<T> supplier) Lambda friendly convenience method that can be used to create aThrowingSupplier
where theget()
method wraps any checked exception thrown by the supplied lambda expression or method reference.static <T> ThrowingSupplier<T>
ThrowingSupplier.of
(ThrowingSupplier<T> supplier, BiFunction<String, Exception, RuntimeException> exceptionWrapper) Lambda friendly convenience method that can be used to createThrowingSupplier
where theget()
method wraps any thrown checked exceptions using the givenexceptionWrapper
.
BeanInstanceSupplier.withGenerator(ThrowingFunction)