Skip to content

Commit 1419172

Browse files
committed
Polish Javadoc for JMX support
1 parent 420e0ba commit 1419172

10 files changed

+43
-29
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -46,7 +46,7 @@
4646
import org.springframework.util.StringValueResolver;
4747

4848
/**
49-
* Implementation of the {@code JmxAttributeSource} interface that
49+
* Implementation of the {@link JmxAttributeSource} interface that
5050
* reads annotations and exposes the corresponding attributes.
5151
*
5252
* @author Rob Harrop

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@
2323

2424
/**
2525
* Convenient subclass of Spring's standard {@link MBeanExporter},
26-
* activating Java 5 annotation usage for JMX exposure of Spring beans:
26+
* activating annotation usage for JMX exposure of Spring beans:
2727
* {@link ManagedResource}, {@link ManagedAttribute}, {@link ManagedOperation}, etc.
2828
*
2929
* <p>Sets a {@link MetadataNamingStrategy} and a {@link MetadataMBeanInfoAssembler}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
/**
2828
* Method-level annotation that indicates to expose a given bean property as a
2929
* JMX attribute, with added descriptor properties to indicate that it is a metric.
30-
* Only valid when used on a JavaBean getter.
30+
*
31+
* <p>Only valid when used on a JavaBean getter.
3132
*
3233
* @author Jennifer Hickey
3334
* @since 3.0

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2015 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -27,10 +27,12 @@
2727
/**
2828
* Type-level annotation that indicates a JMX notification emitted by a bean.
2929
*
30-
* <p>As of Spring Framework 4.2.4, this annotation is declared as repeatable.
30+
* <p>This annotation is a {@linkplain java.lang.annotation.Repeatable repeatable}
31+
* annotation.
3132
*
3233
* @author Rob Harrop
3334
* @since 2.0
35+
* @see ManagedNotifications
3436
* @see org.springframework.jmx.export.metadata.ManagedNotification
3537
*/
3638
@Target(ElementType.TYPE)

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2016 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,8 +24,12 @@
2424
import java.lang.annotation.Target;
2525

2626
/**
27-
* Type-level annotation that indicates JMX notifications emitted by a bean,
28-
* containing multiple {@link ManagedNotification ManagedNotifications}.
27+
* Type-level annotation used as a container for one or more
28+
* {@code @ManagedNotification} declarations.
29+
*
30+
* <p>Note, however, that use of the {@code @ManagedNotifications} container
31+
* is completely optional since {@code @ManagedNotification} is a
32+
* {@linkplain java.lang.annotation.Repeatable repeatable} annotation.
2933
*
3034
* @author Rob Harrop
3135
* @since 2.0

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2015 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -23,9 +23,11 @@
2323
import java.lang.annotation.Target;
2424

2525
/**
26-
* Method-level annotation that indicates to expose a given method as a
27-
* JMX operation, corresponding to the {@code ManagedOperation} attribute.
28-
* Only valid when used on a method that is not a JavaBean getter or setter.
26+
* Method-level annotation that indicates to expose a given method as a JMX operation,
27+
* corresponding to the {@link org.springframework.jmx.export.metadata.ManagedOperation}
28+
* attribute.
29+
*
30+
* <p>Only valid when used on a method that is not a JavaBean getter or setter.
2931
*
3032
* @author Rob Harrop
3133
* @since 1.2

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2015 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,15 +24,15 @@
2424
import java.lang.annotation.Target;
2525

2626
/**
27-
* Method-level annotation used to provide metadata about operation parameters,
28-
* corresponding to a {@code ManagedOperationParameter} attribute.
29-
* Used as part of a {@link ManagedOperationParameters} annotation.
27+
* Method-level annotation used to provide metadata about operation parameters, corresponding
28+
* to a {@link org.springframework.jmx.export.metadata.ManagedOperationParameter} attribute.
3029
*
31-
* <p>As of Spring Framework 4.2.4, this annotation is declared as repeatable.
30+
* <p>This annotation is a {@linkplain java.lang.annotation.Repeatable repeatable}
31+
* annotation.
3232
*
3333
* @author Rob Harrop
3434
* @since 1.2
35-
* @see ManagedOperationParameters#value
35+
* @see ManagedOperationParameters
3636
* @see org.springframework.jmx.export.metadata.ManagedOperationParameter
3737
*/
3838
@Target(ElementType.METHOD)

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2015 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -23,8 +23,12 @@
2323
import java.lang.annotation.Target;
2424

2525
/**
26-
* Method-level annotation used to provide metadata about operation parameters,
27-
* corresponding to an array of {@code ManagedOperationParameter} attributes.
26+
* Method-level annotation used as a container for one or more
27+
* {@code @ManagedOperationParameter} declarations.
28+
*
29+
* <p>Note, however, that use of the {@code @ManagedOperationParameters} container
30+
* is completely optional since {@code @ManagedOperationParameter} is a
31+
* {@linkplain java.lang.annotation.Repeatable repeatable} annotation.
2832
*
2933
* @author Rob Harrop
3034
* @since 1.2

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2015 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -26,8 +26,8 @@
2626
import org.springframework.core.annotation.AliasFor;
2727

2828
/**
29-
* Class-level annotation that indicates to register instances of a class
30-
* with a JMX server, corresponding to the {@code ManagedResource} attribute.
29+
* Class-level annotation that indicates to register instances of a class with a JMX server,
30+
* corresponding to the {@link org.springframework.jmx.export.metadata.ManagedResource} attribute.
3131
*
3232
* <p><b>Note:</b> This annotation is marked as inherited, allowing for generic
3333
* management-aware base classes. In such a scenario, it is recommended to

spring-context/src/main/java/org/springframework/jmx/export/annotation/package-info.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/**
2-
* Java 5 annotations for MBean exposure.
3-
* Hooked into Spring's JMX export infrastructure
4-
* via a special JmxAttributeSource implementation.
2+
* Annotations for MBean exposure.
3+
*
4+
* <p>Hooked into Spring's JMX export infrastructure via a special
5+
* {@link org.springframework.jmx.export.metadata.JmxAttributeSource} implementation.
56
*/
67
@NonNullApi
78
@NonNullFields

0 commit comments

Comments
 (0)