ApplicationTaskExecutorAsyncConfigurer Class — spring-boot Architecture
Architecture documentation for the ApplicationTaskExecutorAsyncConfigurer class in TaskExecutorConfigurations.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
core/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/task/TaskExecutorConfigurations.java lines 257–284
static class ApplicationTaskExecutorAsyncConfigurer implements AsyncConfigurer {
private final BeanFactory beanFactory;
private final @Nullable AsyncConfigurer delegate;
ApplicationTaskExecutorAsyncConfigurer(BeanFactory beanFactory, @Nullable AsyncConfigurer delegate) {
this.beanFactory = beanFactory;
this.delegate = delegate;
}
@Override
public Executor getAsyncExecutor() {
Executor executor = (this.delegate != null) ? this.delegate.getAsyncExecutor() : null;
return (executor != null) ? executor : getApplicationTaskExecutor();
}
@Override
public @Nullable AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
return (this.delegate != null) ? this.delegate.getAsyncUncaughtExceptionHandler() : null;
}
private Executor getApplicationTaskExecutor() {
return this.beanFactory.getBean(TaskExecutionAutoConfiguration.APPLICATION_TASK_EXECUTOR_BEAN_NAME,
Executor.class);
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free