Polish AdviceMode Javadoc
This commit is contained in:
parent
847b54f3b1
commit
4feacf31e7
|
|
@ -17,10 +17,14 @@
|
||||||
package org.springframework.context.config;
|
package org.springframework.context.config;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO SPR-7420: document
|
* Enumeration used to determine whether proxy-based or AspectJ-based advice should be
|
||||||
|
* applied.
|
||||||
*
|
*
|
||||||
* @author Chris Beams
|
* @author Chris Beams
|
||||||
* @since 3.1
|
* @since 3.1
|
||||||
|
* @see org.springframework.scheduling.annotation.EnableAsync#mode()
|
||||||
|
* @see org.springframework.scheduling.annotation.AsyncConfigurationSelector#selectImports
|
||||||
|
* @see org.springframework.transaction.annotation.EnableTransactionManagement#mode()
|
||||||
*/
|
*/
|
||||||
public enum AdviceMode {
|
public enum AdviceMode {
|
||||||
PROXY,
|
PROXY,
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,12 @@ import org.springframework.util.Assert;
|
||||||
*/
|
*/
|
||||||
public class AsyncConfigurationSelector implements ImportSelector {
|
public class AsyncConfigurationSelector implements ImportSelector {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Import {@link ProxyAsyncConfiguration} if {@link EnableAsync#mode()} equals
|
||||||
|
* {@code PROXY}, otherwise import
|
||||||
|
* {@link org.springframework.scheduling.aspectj.AspectJAsyncConfiguration
|
||||||
|
* AspectJAsyncConfiguration}.
|
||||||
|
*/
|
||||||
public String[] selectImports(AnnotationMetadata importingClassMetadata) {
|
public String[] selectImports(AnnotationMetadata importingClassMetadata) {
|
||||||
Map<String, Object> enableAsync =
|
Map<String, Object> enableAsync =
|
||||||
importingClassMetadata.getAnnotationAttributes(EnableAsync.class.getName());
|
importingClassMetadata.getAnnotationAttributes(EnableAsync.class.getName());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue