From 8e55ad1c08a6307a86b1bd320a72cbe3e236b245 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Fri, 17 Jul 2015 16:33:15 +0200 Subject: [PATCH] Polishing --- .../scheduling/annotation/EnableAsync.java | 14 +++++++------- .../annotation/SchedulingConfiguration.java | 11 +++++------ 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/spring-context/src/main/java/org/springframework/scheduling/annotation/EnableAsync.java b/spring-context/src/main/java/org/springframework/scheduling/annotation/EnableAsync.java index e02ce9dd5c..9c9f439732 100644 --- a/spring-context/src/main/java/org/springframework/scheduling/annotation/EnableAsync.java +++ b/spring-context/src/main/java/org/springframework/scheduling/annotation/EnableAsync.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -138,11 +138,11 @@ import org.springframework.core.Ordered; public @interface EnableAsync { /** - * Indicate the 'async' annotation type to be detected at either class - * or method level. By default, both the {@link Async} annotation and - * the EJB 3.1 {@code javax.ejb.Asynchronous} annotation will be - * detected.

This setter property exists so that developers can provide - * their own (non-Spring-specific) annotation type to indicate that a method + * Indicate the 'async' annotation type to be detected at either class or + * method level. By default, both the {@link Async} annotation and the + * EJB 3.1 {@code javax.ejb.Asynchronous} annotation will be detected. + *

This setter property exists so that developers can provide their + * own (non-Spring-specific) annotation type to indicate that a method * (or all methods of a given class) should be invoked asynchronously. */ Class annotation() default Annotation.class; @@ -151,7 +151,6 @@ public @interface EnableAsync { * Indicate whether subclass-based (CGLIB) proxies are to be created as opposed * to standard Java interface-based proxies. The default is {@code false}. * Applicable only if {@link #mode()} is set to {@link AdviceMode#PROXY}. - * *

Note that setting this attribute to {@code true} will affect all * Spring-managed beans requiring proxying, not just those marked with {@code @Async}. * For example, other beans marked with Spring's {@code @Transactional} annotation @@ -176,4 +175,5 @@ public @interface EnableAsync { * existing proxies rather than double-proxy. */ int order() default Ordered.LOWEST_PRECEDENCE; + } diff --git a/spring-context/src/main/java/org/springframework/scheduling/annotation/SchedulingConfiguration.java b/spring-context/src/main/java/org/springframework/scheduling/annotation/SchedulingConfiguration.java index 7ade9fa436..b7c40b1dc9 100644 --- a/spring-context/src/main/java/org/springframework/scheduling/annotation/SchedulingConfiguration.java +++ b/spring-context/src/main/java/org/springframework/scheduling/annotation/SchedulingConfiguration.java @@ -23,13 +23,12 @@ import org.springframework.context.annotation.Role; import org.springframework.scheduling.config.TaskManagementConfigUtils; /** - * {@code @Configuration} class that registers a {@link - * ScheduledAnnotationBeanPostProcessor} bean capable of processing Spring's @{@link - * Scheduled} annotation. + * {@code @Configuration} class that registers a {@link ScheduledAnnotationBeanPostProcessor} + * bean capable of processing Spring's @{@link Scheduled} annotation. * - *

This configuration class is automatically imported when using the @{@link - * EnableScheduling} annotation. See {@code @EnableScheduling} Javadoc for complete usage - * details. + *

This configuration class is automatically imported when using the + * @{@link EnableScheduling} annotation. See {@code @EnableScheduling}'s javadoc + * for complete usage details. * * @author Chris Beams * @since 3.1