org.jgroups.annotations.MBean 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 java.lang.annotation.*;
/**
* Optional annotation that exposes all public methods in the class hierarchy (excluding Object) as MBean operations.
* All methods are exposed if and only if exposeAll attribute is true.
*
* If a more fine grained MBean attribute and operation exposure is needed, do not use @MBean annotation but annotate
* fields and public methods directly using @ManagedOperation and @ManagedAttribute annotations.
* @author Chris Mills
*/
@Retention(RetentionPolicy.RUNTIME)
@Target( { ElementType.TYPE })
@Inherited
public @interface MBean {
String objectName() default "";
boolean exposeAll() default false;
String description() default "";
}