Uses of Interface
org.springframework.util.function.ThrowingConsumer
Packages that use 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
Methods in org.springframework.aot.generate with parameters of type ThrowingConsumerModifier and TypeMethodDescriptiondefault voidGeneratedFiles.addFile(GeneratedFiles.Kind kind, String path, ThrowingConsumer<Appendable> content) Add a generated file of the specifiedGeneratedFiles.Kindwith content written to anAppendablepassed to the givenThrowingConsumer.default voidGeneratedFiles.addResourceFile(String path, ThrowingConsumer<Appendable> content) Add a generatedresource filewith content written to anAppendablepassed to the givenThrowingConsumer.default voidGeneratedFiles.addSourceFile(String className, ThrowingConsumer<Appendable> content) Add a generatedsource filewith content written to anAppendablepassed to the givenThrowingConsumer.voidFileSystemGeneratedFiles.handleFile(GeneratedFiles.Kind kind, String path, ThrowingConsumer<GeneratedFiles.FileHandler> handler) voidGeneratedFiles.handleFile(GeneratedFiles.Kind kind, String path, ThrowingConsumer<GeneratedFiles.FileHandler> handler) Handle a generated file of the specifiedGeneratedFiles.Kindwith the given handler.voidInMemoryGeneratedFiles.handleFile(GeneratedFiles.Kind kind, String path, ThrowingConsumer<GeneratedFiles.FileHandler> handler) -
Uses of ThrowingConsumer in org.springframework.beans.factory.aot
Methods in org.springframework.beans.factory.aot with parameters of type ThrowingConsumerModifier and TypeMethodDescription<T> voidAutowiredFieldValueResolver.resolve(RegisteredBean registeredBean, ThrowingConsumer<T> action) Resolve the field for the specified registered bean and provide it to the given action.voidAutowiredMethodArgumentsResolver.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
Methods in org.springframework.util.function that return ThrowingConsumerModifier and TypeMethodDescriptionstatic <T> ThrowingConsumer<T> ThrowingConsumer.of(ThrowingConsumer<T> consumer) Lambda friendly convenience method that can be used to create aThrowingConsumerwhere theThrowingConsumer.accept(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 aThrowingConsumerwhere theThrowingConsumer.accept(Object)method wraps any thrown checked exceptions using the givenexceptionWrapper.default ThrowingConsumer<T> ThrowingConsumer.throwing(BiFunction<String, Exception, RuntimeException> exceptionWrapper) Return a newThrowingConsumerwhere theThrowingConsumer.accept(Object)method wraps any thrown checked exceptions using the givenexceptionWrapper.Methods in org.springframework.util.function with parameters of type ThrowingConsumerModifier and TypeMethodDescriptionstatic <T> ThrowingConsumer<T> ThrowingConsumer.of(ThrowingConsumer<T> consumer) Lambda friendly convenience method that can be used to create aThrowingConsumerwhere theThrowingConsumer.accept(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 aThrowingConsumerwhere theThrowingConsumer.accept(Object)method wraps any thrown checked exceptions using the givenexceptionWrapper.