Top Description Fields Constructors Methods
org.springframework.scheduling.annotation

public abstract Class AbstractAsyncConfiguration

extends Object
implements ImportAware
Class Inheritance
All Implemented Interfaces
org.springframework.context.annotation.ImportAware, org.springframework.beans.factory.Aware
Known Direct Subclasses
org.springframework.scheduling.annotation.ProxyAsyncConfiguration
Annotations
@Configuration
proxyBeanMethods:false
Imports
java.util.List, java.util.concurrent.Executor, java.util.function.Function, .Supplier, org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler, org.springframework.beans.factory.ObjectProvider, org.springframework.beans.factory.annotation.Autowired, org.springframework.context.annotation.Configuration, .ImportAware, org.springframework.core.annotation.AnnotationAttributes, org.springframework.core.type.AnnotationMetadata, org.springframework.lang.Nullable, org.springframework.util.CollectionUtils, org.springframework.util.function.SingletonSupplier

Abstract base Configuration class providing common structure for enabling Spring's asynchronous method execution capability.
Authors
Chris Beams, Juergen Hoeller, Stephane Nicoll
Since
3.1
See Also
EnableAsync

Field Summary

Modifier and TypeField and Description
protected AnnotationAttributes
protected Supplier<AsyncUncaughtExceptionHandler>
protected Supplier<Executor>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private <T> Supplier<T>
pack-priv void
setConfigurers(ObjectProvider<AsyncConfigurer> configurers)

Collect any AsyncConfigurer beans through autowiring.

public void
setImportMetadata(AnnotationMetadata importMetadata)

Implements org.springframework.context.annotation.ImportAware.setImportMetadata.

Set the annotation metadata of the importing @Configuration class.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

enableAsyncback to summary
protected AnnotationAttributes enableAsync
Annotations
@Nullable
exceptionHandlerback to summary
protected Supplier<AsyncUncaughtExceptionHandler> exceptionHandler
Annotations
@Nullable
executorback to summary
protected Supplier<Executor> executor
Annotations
@Nullable

Constructor Detail

AbstractAsyncConfigurationback to summary
public AbstractAsyncConfiguration()

Method Detail

adaptback to summary
private <T> Supplier<T> adapt(Supplier<AsyncConfigurer> supplier, Function<AsyncConfigurer, T> provider)
setConfigurersback to summary
pack-priv void setConfigurers(ObjectProvider<AsyncConfigurer> configurers)

Collect any AsyncConfigurer beans through autowiring.

Annotations
@Autowired
setImportMetadataback to summary
public void setImportMetadata(AnnotationMetadata importMetadata)

Implements org.springframework.context.annotation.ImportAware.setImportMetadata.

Doc from org.springframework.context.annotation.ImportAware.setImportMetadata.

Set the annotation metadata of the importing @Configuration class.

Annotations
@Override