Package org.hawaiiframework.async.config
Class AsyncExecutorInitializer
- java.lang.Object
-
- org.hawaiiframework.async.config.AsyncExecutorInitializer
-
public class AsyncExecutorInitializer extends Object
Utility to initialize executors for the asynchronous execution of methods using the @Asyncannotation.- Since:
- 3.0.0
- Author:
- Rutger Lubbers, Paul Klos
-
-
Constructor Summary
Constructors Constructor Description AsyncExecutorInitializer(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, ExecutorConfigurationProperties configuration)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.core.task.TaskExecutorgetDefaultExecutor()voidinitializeExecutors()Initialize all configured executors in the bean factory and determine the default executor.
-
-
-
Constructor Detail
-
AsyncExecutorInitializer
public AsyncExecutorInitializer(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, ExecutorConfigurationProperties configuration)The constructor.- Parameters:
beanFactory- Spring's bean factory.configuration- The executor configuration.
-
-