Uses of Interface
org.springframework.util.function.ThrowingConsumer
Package
Description
Support classes for components that contribute generated code equivalent to a
runtime behavior.
AOT support for bean factories.
Useful generic
java.util.function
helper classes.-
Uses of ThrowingConsumer in org.springframework.aot.generate
Modifier and TypeMethodDescriptiondefault void
GeneratedFiles.addFile
(GeneratedFiles.Kind kind, String path, ThrowingConsumer<Appendable> content) Add a generated file of the specifiedGeneratedFiles.Kind
with content written to anAppendable
passed to the givenThrowingConsumer
.default void
GeneratedFiles.addResourceFile
(String path, ThrowingConsumer<Appendable> content) Add a generatedresource file
with content written to anAppendable
passed to the givenThrowingConsumer
.default void
GeneratedFiles.addSourceFile
(String className, ThrowingConsumer<Appendable> content) Add a generatedsource file
with content written to anAppendable
passed to the givenThrowingConsumer
.void
FileSystemGeneratedFiles.handleFile
(GeneratedFiles.Kind kind, String path, ThrowingConsumer<GeneratedFiles.FileHandler> handler) void
GeneratedFiles.handleFile
(GeneratedFiles.Kind kind, String path, ThrowingConsumer<GeneratedFiles.FileHandler> handler) Handle a generated file of the specifiedGeneratedFiles.Kind
with the given handler.void
InMemoryGeneratedFiles.handleFile
(GeneratedFiles.Kind kind, String path, ThrowingConsumer<GeneratedFiles.FileHandler> handler) -
Uses of ThrowingConsumer in org.springframework.beans.factory.aot
Modifier and TypeMethodDescription<T> void
AutowiredFieldValueResolver.resolve
(RegisteredBean registeredBean, ThrowingConsumer<T> action) Resolve the field for the specified registered bean and provide it to the given action.void
AutowiredMethodArgumentsResolver.resolve
(RegisteredBean registeredBean, ThrowingConsumer<AutowiredArguments> action) Resolve the method arguments for the specified registered bean and provide it to the given action. -
Uses of ThrowingConsumer in org.springframework.util.function
Modifier and TypeMethodDescriptionstatic <T> ThrowingConsumer<T>
ThrowingConsumer.of
(ThrowingConsumer<T> consumer) Lambda friendly convenience method that can be used to create aThrowingConsumer
where theaccept(Object)
method wraps any checked exception thrown by the supplied lambda expression or method reference.static <T> ThrowingConsumer<T>
ThrowingConsumer.of
(ThrowingConsumer<T> consumer, BiFunction<String, Exception, RuntimeException> exceptionWrapper) Lambda friendly convenience method that can be used to create aThrowingConsumer
where theaccept(Object)
method wraps any thrown checked exceptions using the givenexceptionWrapper
.default ThrowingConsumer<T>
ThrowingConsumer.throwing
(BiFunction<String, Exception, RuntimeException> exceptionWrapper) Return a newThrowingConsumer
where theaccept(Object)
method wraps any thrown checked exceptions using the givenexceptionWrapper
.Modifier and TypeMethodDescriptionstatic <T> ThrowingConsumer<T>
ThrowingConsumer.of
(ThrowingConsumer<T> consumer) Lambda friendly convenience method that can be used to create aThrowingConsumer
where theaccept(Object)
method wraps any checked exception thrown by the supplied lambda expression or method reference.static <T> ThrowingConsumer<T>
ThrowingConsumer.of
(ThrowingConsumer<T> consumer, BiFunction<String, Exception, RuntimeException> exceptionWrapper) Lambda friendly convenience method that can be used to create aThrowingConsumer
where theaccept(Object)
method wraps any thrown checked exceptions using the givenexceptionWrapper
.