org.jgroups.annotations.ManagedAttribute Maven / Gradle / Ivy
Go to download
This artifact provides a single jar that contains all classes required to use remote EJB and JMS, including
all dependencies. It is intended for use by those not using maven, maven users should just import the EJB and
JMS BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up
with different versions on classes on the class path).
The newest version!
package org.jgroups.annotations;
import org.jgroups.conf.AttributeType;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.concurrent.TimeUnit;
/**
* Indicates that a public method or a field (any visibility) in
* an MBean class defines an MBean attribute. This annotation can
* be applied to either a field or a public setter and/or getter
* method of a public class that is itself is optionally annotated
* with an @MBean annotation, or inherits such an annotation from
* a superclass.
*
* @author Chris Mills
*/
@Retention(RetentionPolicy.RUNTIME)
@Target( { ElementType.METHOD, ElementType.FIELD })
public @interface ManagedAttribute {
String description() default "";
String name() default "";
boolean writable() default false;
/* Defines the type, used for pretty printing */
AttributeType type() default AttributeType.UNDEFINED;
/** Only used if type is TIME */
TimeUnit unit() default TimeUnit.MILLISECONDS;
}