|
1 | 1 | /* |
2 | | - * Copyright 2002-2014 the original author or authors. |
| 2 | + * Copyright 2002-2015 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. |
|
138 | 138 | public @interface EnableAsync { |
139 | 139 |
|
140 | 140 | /** |
141 | | - * Indicate the 'async' annotation type to be detected at either class |
142 | | - * or method level. By default, both the {@link Async} annotation and |
143 | | - * the EJB 3.1 {@code javax.ejb.Asynchronous} annotation will be |
144 | | - * detected. <p>This setter property exists so that developers can provide |
145 | | - * their own (non-Spring-specific) annotation type to indicate that a method |
| 141 | + * Indicate the 'async' annotation type to be detected at either class or |
| 142 | + * method level. By default, both the {@link Async} annotation and the |
| 143 | + * EJB 3.1 {@code javax.ejb.Asynchronous} annotation will be detected. |
| 144 | + * <p>This setter property exists so that developers can provide their |
| 145 | + * own (non-Spring-specific) annotation type to indicate that a method |
146 | 146 | * (or all methods of a given class) should be invoked asynchronously. |
147 | 147 | */ |
148 | 148 | Class<? extends Annotation> annotation() default Annotation.class; |
|
151 | 151 | * Indicate whether subclass-based (CGLIB) proxies are to be created as opposed |
152 | 152 | * to standard Java interface-based proxies. The default is {@code false}. <strong> |
153 | 153 | * Applicable only if {@link #mode()} is set to {@link AdviceMode#PROXY}</strong>. |
154 | | - * |
155 | 154 | * <p>Note that setting this attribute to {@code true} will affect <em>all</em> |
156 | 155 | * Spring-managed beans requiring proxying, not just those marked with {@code @Async}. |
157 | 156 | * For example, other beans marked with Spring's {@code @Transactional} annotation |
|
176 | 175 | * existing proxies rather than double-proxy. |
177 | 176 | */ |
178 | 177 | int order() default Ordered.LOWEST_PRECEDENCE; |
| 178 | + |
179 | 179 | } |
0 commit comments