Uses of Interface
org.springframework.core.io.support.SpringFactoriesLoader.FailureHandler
Packages that use SpringFactoriesLoader.FailureHandler
Package
Description
Support classes for Spring's resource abstraction.
-
Uses of SpringFactoriesLoader.FailureHandler in org.springframework.core.io.support
Methods in org.springframework.core.io.support that return SpringFactoriesLoader.FailureHandlerModifier and TypeMethodDescriptionSpringFactoriesLoader.FailureHandler.handleMessage(BiConsumer<Supplier<String>, Throwable> messageHandler) Return a newSpringFactoriesLoader.FailureHandlerthat handles errors with using a standard formatted message.Return a newSpringFactoriesLoader.FailureHandlerthat handles errors by logging trace messages.SpringFactoriesLoader.FailureHandler.throwing()Return a newSpringFactoriesLoader.FailureHandlerthat handles errors by throwing anIllegalArgumentException.SpringFactoriesLoader.FailureHandler.throwing(BiFunction<String, Throwable, ? extends RuntimeException> exceptionFactory) Return a newSpringFactoriesLoader.FailureHandlerthat handles errors by throwing an exception.Methods in org.springframework.core.io.support with parameters of type SpringFactoriesLoader.FailureHandlerModifier and TypeMethodDescriptionstatic <T> List<T>SpringFactoriesLoader.loadFactories(Class<T> factoryType, ClassLoader classLoader, SpringFactoriesLoader.ArgumentResolver argumentResolver, SpringFactoriesLoader.FailureHandler failureHandler) Load and instantiate the factory implementations of the given type from "META-INF/spring.factories", using the given class loader, argument resolver, and custom failure handling provided by the given failure handler.static <T> List<T>SpringFactoriesLoader.loadFactories(Class<T> factoryType, ClassLoader classLoader, SpringFactoriesLoader.FailureHandler failureHandler) Load and instantiate the factory implementations of the given type from "META-INF/spring.factories", using the given class loader with custom failure handling provided by the given failure handler.