Polish AdviceMode Javadoc

This commit is contained in:
Chris Beams 2011-05-31 06:41:35 +00:00
parent 847b54f3b1
commit 4feacf31e7
2 changed files with 11 additions and 1 deletions

View File

@ -17,10 +17,14 @@
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
* @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 {
PROXY,

View File

@ -38,6 +38,12 @@ import org.springframework.util.Assert;
*/
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) {
Map<String, Object> enableAsync =
importingClassMetadata.getAnnotationAttributes(EnableAsync.class.getName());