|
|
|
|
@ -22,12 +22,12 @@ import java.lang.annotation.Retention;
@@ -22,12 +22,12 @@ import java.lang.annotation.Retention;
|
|
|
|
|
import java.lang.annotation.RetentionPolicy; |
|
|
|
|
import java.lang.annotation.Target; |
|
|
|
|
|
|
|
|
|
import javax.management.Descriptor; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Method-level annotation that indicates to expose a given bean property as a |
|
|
|
|
* JMX attribute, corresponding to the {@code ManagedAttribute} attribute. |
|
|
|
|
* Only valid when used on a JavaBean getter or setter. |
|
|
|
|
* JMX attribute, corresponding to the |
|
|
|
|
* {@link org.springframework.jmx.export.metadata.ManagedAttribute}. |
|
|
|
|
* |
|
|
|
|
* <p>Only valid when used on a JavaBean getter or setter. |
|
|
|
|
* |
|
|
|
|
* @author Rob Harrop |
|
|
|
|
* @since 1.2 |
|
|
|
|
@ -39,27 +39,27 @@ import javax.management.Descriptor;
@@ -39,27 +39,27 @@ import javax.management.Descriptor;
|
|
|
|
|
public @interface ManagedAttribute { |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Set the default value for the attribute in a JMX {@link Descriptor}. |
|
|
|
|
* Set the default value for the attribute in a {@link javax.management.Descriptor}. |
|
|
|
|
*/ |
|
|
|
|
String defaultValue() default ""; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Set the description for the attribute a JMX {@link Descriptor}. |
|
|
|
|
* Set the description for the attribute in a {@link javax.management.Descriptor}. |
|
|
|
|
*/ |
|
|
|
|
String description() default ""; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Set the currency time limit field in a JMX {@link Descriptor}. |
|
|
|
|
* Set the currency time limit field in a {@link javax.management.Descriptor}. |
|
|
|
|
*/ |
|
|
|
|
int currencyTimeLimit() default -1; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Set the persistPolicy field in a JMX {@link Descriptor}. |
|
|
|
|
* Set the persistPolicy field in a {@link javax.management.Descriptor}. |
|
|
|
|
*/ |
|
|
|
|
String persistPolicy() default ""; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Set the persistPeriod field in a JMX {@link Descriptor}. |
|
|
|
|
* Set the persistPeriod field in a {@link javax.management.Descriptor}. |
|
|
|
|
*/ |
|
|
|
|
int persistPeriod() default -1; |
|
|
|
|
|
|
|
|
|
|