Browse Source

Update Javadoc regarding repeatable annotation support

pull/27646/head
Sam Brannen 4 years ago
parent
commit
32c14a2b42
  1. 5
      spring-context/src/main/java/org/springframework/jmx/export/annotation/ManagedNotification.java
  2. 6
      spring-context/src/main/java/org/springframework/jmx/export/annotation/ManagedOperationParameter.java
  3. 3
      spring-context/src/main/java/org/springframework/scheduling/annotation/Scheduled.java
  4. 5
      spring-jms/src/main/java/org/springframework/jms/annotation/JmsListener.java
  5. 6
      spring-test/src/main/java/org/springframework/test/context/TestPropertySource.java
  6. 9
      spring-test/src/main/java/org/springframework/test/context/jdbc/Sql.java

5
spring-context/src/main/java/org/springframework/jmx/export/annotation/ManagedNotification.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2015 the original author or authors.
* Copyright 2002-2021 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.
@ -27,7 +27,8 @@ import java.lang.annotation.Target; @@ -27,7 +27,8 @@ import java.lang.annotation.Target;
/**
* Type-level annotation that indicates a JMX notification emitted by a bean.
*
* <p>As of Spring Framework 4.2.4, this annotation is declared as repeatable.
* <p>This annotation can be used as a <em>{@linkplain Repeatable repeatable}</em>
* annotation.
*
* @author Rob Harrop
* @since 2.0

6
spring-context/src/main/java/org/springframework/jmx/export/annotation/ManagedOperationParameter.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2015 the original author or authors.
* Copyright 2002-2021 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.
@ -26,9 +26,9 @@ import java.lang.annotation.Target; @@ -26,9 +26,9 @@ import java.lang.annotation.Target;
/**
* Method-level annotation used to provide metadata about operation parameters,
* corresponding to a {@code ManagedOperationParameter} attribute.
* Used as part of a {@link ManagedOperationParameters} annotation.
*
* <p>As of Spring Framework 4.2.4, this annotation is declared as repeatable.
* <p>This annotation can be used as a <em>{@linkplain Repeatable repeatable}</em>
* annotation.
*
* @author Rob Harrop
* @since 1.2

3
spring-context/src/main/java/org/springframework/scheduling/annotation/Scheduled.java

@ -40,6 +40,9 @@ import org.springframework.scheduling.config.ScheduledTaskRegistrar; @@ -40,6 +40,9 @@ import org.springframework.scheduling.config.ScheduledTaskRegistrar;
* done manually or, more conveniently, through the {@code <task:annotation-driven/>}
* XML element or {@link EnableScheduling @EnableScheduling} annotation.
*
* <p>This annotation can be used as a <em>{@linkplain Repeatable repeatable}</em>
* annotation.
*
* <p>This annotation may be used as a <em>meta-annotation</em> to create custom
* <em>composed annotations</em> with attribute overrides.
*

5
spring-jms/src/main/java/org/springframework/jms/annotation/JmsListener.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 the original author or authors.
* Copyright 2002-2021 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.
@ -72,6 +72,9 @@ import org.springframework.messaging.handler.annotation.MessageMapping; @@ -72,6 +72,9 @@ import org.springframework.messaging.handler.annotation.MessageMapping;
* {@link org.springframework.messaging.handler.annotation.SendTo @SendTo} to the
* method declaration.
*
* <p>This annotation can be used as a <em>{@linkplain Repeatable repeatable}</em>
* annotation.
*
* <p>This annotation may be used as a <em>meta-annotation</em> to create custom
* <em>composed annotations</em> with attribute overrides.
*

6
spring-test/src/main/java/org/springframework/test/context/TestPropertySource.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2020 the original author or authors.
* Copyright 2002-2021 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.
@ -70,8 +70,8 @@ import org.springframework.core.annotation.AliasFor; @@ -70,8 +70,8 @@ import org.springframework.core.annotation.AliasFor;
* <ul>
* <li>Typically, {@code @TestPropertySource} will be used in conjunction with
* {@link ContextConfiguration @ContextConfiguration}.</li>
* <li>As of Spring Framework 5.2, {@code @TestPropertySource} can be used as a
* <em>{@linkplain Repeatable repeatable}</em> annotation.</li>
* <li>{@code @TestPropertySource} can be used as a <em>{@linkplain Repeatable
* repeatable}</em> annotation.</li>
* <li>This annotation may be used as a <em>meta-annotation</em> to create
* custom <em>composed annotations</em>; however, caution should be taken if
* this annotation and {@code @ContextConfiguration} are combined on a composed

9
spring-test/src/main/java/org/springframework/test/context/jdbc/Sql.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-2021 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.
@ -45,10 +45,9 @@ import org.springframework.core.annotation.AliasFor; @@ -45,10 +45,9 @@ import org.springframework.core.annotation.AliasFor;
* XML namespace element. Consult the javadocs of individual attributes in this
* annotation and {@link SqlConfig @SqlConfig} for details.
*
* <p>Beginning with Java 8, {@code @Sql} can be used as a
* <em>{@linkplain Repeatable repeatable}</em> annotation. Otherwise,
* {@link SqlGroup @SqlGroup} can be used as an explicit container for declaring
* multiple instances of {@code @Sql}.
* <p>{@code @Sql} can be used as a <em>{@linkplain Repeatable repeatable}</em>
* annotation. Otherwise, {@link SqlGroup @SqlGroup} can be used as an explicit
* container for declaring multiple instances of {@code @Sql}.
*
* <p>This annotation may be used as a <em>meta-annotation</em> to create custom
* <em>composed annotations</em> with attribute overrides.

Loading…
Cancel
Save