|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2016 the original author or authors. |
| 2 | + * Copyright 2002-2019 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
25 | 25 | /**
|
26 | 26 | * Annotation that marks a method as a candidate for <i>asynchronous</i> execution.
|
27 | 27 | * Can also be used at the type level, in which case all of the type's methods are
|
28 |
| - * considered as asynchronous. |
| 28 | + * considered as asynchronous. Note, however, that {@code @Async} is not supported |
| 29 | + * on methods declared within a |
| 30 | + * {@link org.springframework.context.annotation.Configuration @Configuration} class. |
29 | 31 | *
|
30 | 32 | * <p>In terms of target method signatures, any parameter types are supported.
|
31 | 33 | * However, the return type is constrained to either {@code void} or
|
|
55 | 57 |
|
56 | 58 | /**
|
57 | 59 | * A qualifier value for the specified asynchronous operation(s).
|
58 |
| - * <p>May be used to determine the target executor to be used when executing this |
59 |
| - * method, matching the qualifier value (or the bean name) of a specific |
60 |
| - * {@link java.util.concurrent.Executor Executor} or |
| 60 | + * <p>May be used to determine the target executor to be used when executing |
| 61 | + * the asynchronous operation(s), matching the qualifier value (or the bean |
| 62 | + * name) of a specific {@link java.util.concurrent.Executor Executor} or |
61 | 63 | * {@link org.springframework.core.task.TaskExecutor TaskExecutor}
|
62 | 64 | * bean definition.
|
63 |
| - * <p>When specified on a class level {@code @Async} annotation, indicates that the |
64 |
| - * given executor should be used for all methods within the class. Method level use |
| 65 | + * <p>When specified on a class-level {@code @Async} annotation, indicates that the |
| 66 | + * given executor should be used for all methods within the class. Method-level use |
65 | 67 | * of {@code Async#value} always overrides any value set at the class level.
|
66 | 68 | * @since 3.1.2
|
67 | 69 | */
|
|
0 commit comments