Browse Source

Polish Javadoc for JMX support

pull/27953/head
Sam Brannen 4 years ago
parent
commit
1419172fbd
  1. 4
      spring-context/src/main/java/org/springframework/jmx/export/annotation/AnnotationJmxAttributeSource.java
  2. 4
      spring-context/src/main/java/org/springframework/jmx/export/annotation/AnnotationMBeanExporter.java
  3. 3
      spring-context/src/main/java/org/springframework/jmx/export/annotation/ManagedMetric.java
  4. 6
      spring-context/src/main/java/org/springframework/jmx/export/annotation/ManagedNotification.java
  5. 10
      spring-context/src/main/java/org/springframework/jmx/export/annotation/ManagedNotifications.java
  6. 10
      spring-context/src/main/java/org/springframework/jmx/export/annotation/ManagedOperation.java
  7. 12
      spring-context/src/main/java/org/springframework/jmx/export/annotation/ManagedOperationParameter.java
  8. 10
      spring-context/src/main/java/org/springframework/jmx/export/annotation/ManagedOperationParameters.java
  9. 6
      spring-context/src/main/java/org/springframework/jmx/export/annotation/ManagedResource.java
  10. 7
      spring-context/src/main/java/org/springframework/jmx/export/annotation/package-info.java

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

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2019 the original author or authors. * Copyright 2002-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -46,7 +46,7 @@ import org.springframework.lang.Nullable;
import org.springframework.util.StringValueResolver; import org.springframework.util.StringValueResolver;
/** /**
* Implementation of the {@code JmxAttributeSource} interface that * Implementation of the {@link JmxAttributeSource} interface that
* reads annotations and exposes the corresponding attributes. * reads annotations and exposes the corresponding attributes.
* *
* @author Rob Harrop * @author Rob Harrop

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

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2012 the original author or authors. * Copyright 2002-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -23,7 +23,7 @@ import org.springframework.jmx.export.naming.MetadataNamingStrategy;
/** /**
* Convenient subclass of Spring's standard {@link MBeanExporter}, * Convenient subclass of Spring's standard {@link MBeanExporter},
* activating Java 5 annotation usage for JMX exposure of Spring beans: * activating annotation usage for JMX exposure of Spring beans:
* {@link ManagedResource}, {@link ManagedAttribute}, {@link ManagedOperation}, etc. * {@link ManagedResource}, {@link ManagedAttribute}, {@link ManagedOperation}, etc.
* *
* <p>Sets a {@link MetadataNamingStrategy} and a {@link MetadataMBeanInfoAssembler} * <p>Sets a {@link MetadataNamingStrategy} and a {@link MetadataMBeanInfoAssembler}

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

@ -27,7 +27,8 @@ import org.springframework.jmx.support.MetricType;
/** /**
* Method-level annotation that indicates to expose a given bean property as a * Method-level annotation that indicates to expose a given bean property as a
* JMX attribute, with added descriptor properties to indicate that it is a metric. * JMX attribute, with added descriptor properties to indicate that it is a metric.
* Only valid when used on a JavaBean getter. *
* <p>Only valid when used on a JavaBean getter.
* *
* @author Jennifer Hickey * @author Jennifer Hickey
* @since 3.0 * @since 3.0

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

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2015 the original author or authors. * Copyright 2002-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -27,10 +27,12 @@ import java.lang.annotation.Target;
/** /**
* Type-level annotation that indicates a JMX notification emitted by a bean. * 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 is a {@linkplain java.lang.annotation.Repeatable repeatable}
* annotation.
* *
* @author Rob Harrop * @author Rob Harrop
* @since 2.0 * @since 2.0
* @see ManagedNotifications
* @see org.springframework.jmx.export.metadata.ManagedNotification * @see org.springframework.jmx.export.metadata.ManagedNotification
*/ */
@Target(ElementType.TYPE) @Target(ElementType.TYPE)

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

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2016 the original author or authors. * Copyright 2002-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -24,8 +24,12 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target; import java.lang.annotation.Target;
/** /**
* Type-level annotation that indicates JMX notifications emitted by a bean, * Type-level annotation used as a container for one or more
* containing multiple {@link ManagedNotification ManagedNotifications}. * {@code @ManagedNotification} declarations.
*
* <p>Note, however, that use of the {@code @ManagedNotifications} container
* is completely optional since {@code @ManagedNotification} is a
* {@linkplain java.lang.annotation.Repeatable repeatable} annotation.
* *
* @author Rob Harrop * @author Rob Harrop
* @since 2.0 * @since 2.0

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

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2015 the original author or authors. * Copyright 2002-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -23,9 +23,11 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target; import java.lang.annotation.Target;
/** /**
* Method-level annotation that indicates to expose a given method as a * Method-level annotation that indicates to expose a given method as a JMX operation,
* JMX operation, corresponding to the {@code ManagedOperation} attribute. * corresponding to the {@link org.springframework.jmx.export.metadata.ManagedOperation}
* Only valid when used on a method that is not a JavaBean getter or setter. * attribute.
*
* <p>Only valid when used on a method that is not a JavaBean getter or setter.
* *
* @author Rob Harrop * @author Rob Harrop
* @since 1.2 * @since 1.2

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

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2015 the original author or authors. * Copyright 2002-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -24,15 +24,15 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target; import java.lang.annotation.Target;
/** /**
* Method-level annotation used to provide metadata about operation parameters, * Method-level annotation used to provide metadata about operation parameters, corresponding
* corresponding to a {@code ManagedOperationParameter} attribute. * to a {@link org.springframework.jmx.export.metadata.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 is a {@linkplain java.lang.annotation.Repeatable repeatable}
* annotation.
* *
* @author Rob Harrop * @author Rob Harrop
* @since 1.2 * @since 1.2
* @see ManagedOperationParameters#value * @see ManagedOperationParameters
* @see org.springframework.jmx.export.metadata.ManagedOperationParameter * @see org.springframework.jmx.export.metadata.ManagedOperationParameter
*/ */
@Target(ElementType.METHOD) @Target(ElementType.METHOD)

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

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2015 the original author or authors. * Copyright 2002-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -23,8 +23,12 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target; import java.lang.annotation.Target;
/** /**
* Method-level annotation used to provide metadata about operation parameters, * Method-level annotation used as a container for one or more
* corresponding to an array of {@code ManagedOperationParameter} attributes. * {@code @ManagedOperationParameter} declarations.
*
* <p>Note, however, that use of the {@code @ManagedOperationParameters} container
* is completely optional since {@code @ManagedOperationParameter} is a
* {@linkplain java.lang.annotation.Repeatable repeatable} annotation.
* *
* @author Rob Harrop * @author Rob Harrop
* @since 1.2 * @since 1.2

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

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2015 the original author or authors. * Copyright 2002-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -26,8 +26,8 @@ import java.lang.annotation.Target;
import org.springframework.core.annotation.AliasFor; import org.springframework.core.annotation.AliasFor;
/** /**
* Class-level annotation that indicates to register instances of a class * Class-level annotation that indicates to register instances of a class with a JMX server,
* with a JMX server, corresponding to the {@code ManagedResource} attribute. * corresponding to the {@link org.springframework.jmx.export.metadata.ManagedResource} attribute.
* *
* <p><b>Note:</b> This annotation is marked as inherited, allowing for generic * <p><b>Note:</b> This annotation is marked as inherited, allowing for generic
* management-aware base classes. In such a scenario, it is recommended to * management-aware base classes. In such a scenario, it is recommended to

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

@ -1,7 +1,8 @@
/** /**
* Java 5 annotations for MBean exposure. * Annotations for MBean exposure.
* Hooked into Spring's JMX export infrastructure *
* via a special JmxAttributeSource implementation. * <p>Hooked into Spring's JMX export infrastructure via a special
* {@link org.springframework.jmx.export.metadata.JmxAttributeSource} implementation.
*/ */
@NonNullApi @NonNullApi
@NonNullFields @NonNullFields

Loading…
Cancel
Save