JBoss Integration 6.0 Parent 6.0.0.CR1

org.jboss.annotations.spi.jmx
Annotation Type JMX


@Retention(value=RUNTIME)
@Target(value={TYPE,METHOD,FIELD})
public @interface JMX

Marks inclusion into MBeanServer.

Author:
Kabir Khan, Brian Stansberry, Ales Justin

Required Element Summary
 Class<?> exposedInterface
          The mbean interface the annotated object should expose.
 
Optional Element Summary
 String name
          String form of the ObjectName for the mbean.
 boolean registerDirectly
          Should the annotated object itself be directly registered with the MBeanServer, or should a javax.management.StandardMBean be created using the object and the exposed interface?
 

Element Detail

exposedInterface

public abstract Class<?> exposedInterface
The mbean interface the annotated object should expose. Ignored if registerDirectly() is true.

Returns:
the mbean interface

name

public abstract String name
String form of the ObjectName for the mbean.

Returns:
the object name
Default:
""

registerDirectly

public abstract boolean registerDirectly
Should the annotated object itself be directly registered with the MBeanServer, or should a javax.management.StandardMBean be created using the object and the exposed interface?

Returns:
true if the object should be registered directly, false if a StandardMBean should be created.
Default:
false

JBoss Integration 6.0 Parent 6.0.0.CR1

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.