diff --git a/spring-context/src/main/java/org/springframework/scheduling/annotation/Scheduled.java b/spring-context/src/main/java/org/springframework/scheduling/annotation/Scheduled.java
index 070153667f..506dab5176 100644
--- a/spring-context/src/main/java/org/springframework/scheduling/annotation/Scheduled.java
+++ b/spring-context/src/main/java/org/springframework/scheduling/annotation/Scheduled.java
@@ -36,6 +36,9 @@ import java.lang.annotation.Target;
* done manually or, more conveniently, through the {@code
This annotation may be used as a meta-annotation to create custom + * composed annotations with attribute overrides. + * * @author Mark Fisher * @author Dave Syer * @author Chris Beams diff --git a/spring-context/src/main/java/org/springframework/scheduling/annotation/Schedules.java b/spring-context/src/main/java/org/springframework/scheduling/annotation/Schedules.java index 3cba41869a..d27877ae10 100644 --- a/spring-context/src/main/java/org/springframework/scheduling/annotation/Schedules.java +++ b/spring-context/src/main/java/org/springframework/scheduling/annotation/Schedules.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2016 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. @@ -30,6 +30,9 @@ import java.lang.annotation.Target; * where {@link Scheduled} can simply be declared several times on the same method, * implicitly generating this container annotation. * + *
This annotation may be used as a meta-annotation to create custom + * composed annotations. + * * @author Juergen Hoeller * @since 4.0 * @see Scheduled diff --git a/spring-jms/src/main/java/org/springframework/jms/annotation/JmsListener.java b/spring-jms/src/main/java/org/springframework/jms/annotation/JmsListener.java index bf62c49317..ccd4c056d1 100644 --- a/spring-jms/src/main/java/org/springframework/jms/annotation/JmsListener.java +++ b/spring-jms/src/main/java/org/springframework/jms/annotation/JmsListener.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2015 the original author or authors. + * Copyright 2002-2016 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. @@ -66,6 +66,9 @@ import org.springframework.messaging.handler.annotation.MessageMapping; * {@link org.springframework.messaging.handler.annotation.SendTo @SendTo} to the * method declaration. * + *
This annotation may be used as a meta-annotation to create custom + * composed annotations with attribute overrides. + * * @author Stephane Nicoll * @since 4.1 * @see EnableJms diff --git a/spring-jms/src/main/java/org/springframework/jms/annotation/JmsListeners.java b/spring-jms/src/main/java/org/springframework/jms/annotation/JmsListeners.java index f3d5266e52..255f64576f 100644 --- a/spring-jms/src/main/java/org/springframework/jms/annotation/JmsListeners.java +++ b/spring-jms/src/main/java/org/springframework/jms/annotation/JmsListeners.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2015 the original author or authors. + * Copyright 2002-2016 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. @@ -30,6 +30,9 @@ import java.lang.annotation.Target; * where {@link JmsListener} can simply be declared several times on the same method, * implicitly generating this container annotation. * + *
This annotation may be used as a meta-annotation to create custom + * composed annotations. + * * @author Stephane Nicoll * @since 4.2 * @see JmsListener diff --git a/spring-test/src/main/java/org/springframework/test/context/jdbc/Sql.java b/spring-test/src/main/java/org/springframework/test/context/jdbc/Sql.java index 3ed0acf55d..5794dde30f 100644 --- a/spring-test/src/main/java/org/springframework/test/context/jdbc/Sql.java +++ b/spring-test/src/main/java/org/springframework/test/context/jdbc/Sql.java @@ -50,7 +50,7 @@ import org.springframework.core.annotation.AliasFor; * multiple instances of {@code @Sql}. * *
This annotation may be used as a meta-annotation to create custom - * composed annotations. + * composed annotations with attribute overrides. * * @author Sam Brannen * @since 4.1 diff --git a/src/asciidoc/whats-new.adoc b/src/asciidoc/whats-new.adoc index 3088214000..59513fab8a 100644 --- a/src/asciidoc/whats-new.adoc +++ b/src/asciidoc/whats-new.adoc @@ -633,11 +633,14 @@ public @interface MyTestConfig { bean only defines one constructor. * `@Configuration` classes support constructor injection. * Any SpEL expression used to specify the `condition` of an `@EventListener` can - now refer to beans (i.e. `@beanName.method()`). + now refer to beans (e.g. `@beanName.method()`). * _Composed annotations_ can now override array attributes in meta-annotations with a single element of the component type of the array. For example, the `String[] path` attribute of `@RequestMapping` can be overridden with `String path` in a composed annotation. +* `@Scheduled` and `@Schedules` may now be used as _meta-annotations_ to create + custom _composed annotations_ with attribute overrides. + === Data Access Improvements @@ -661,7 +664,9 @@ Spring 4.3 also improves the caching abstraction as follows: === JMS Improvements -* `@SendTo` can now be specified at class-level to share a common reply destination. +* `@SendTo` can now be specified at the class level to share a common reply destination. +* `@JmsListener` and `@JmsListeners` may now be used as _meta-annotations_ to create + custom _composed annotations_ with attribute overrides. === Web Improvements @@ -694,6 +699,8 @@ Spring 4.3 also improves the caching abstraction as follows: definitions have been loaded into the context but _before_ the context has been refreshed. Customizers can be registered globally by third parties, foregoing the need to implement a custom `ContextLoader`. +* `@Sql` and `@SqlGroup` may now be used as _meta-annotations_ to create custom _composed + annotations_ with attribute overrides. * Server-side Spring MVC Test supports expectations on response headers with multiple values. * Server-side Spring MVC Test parses form data request content and populates request parameters. * Client-side REST test support allows indicating how many times a request is expected and