Please note that this documentation is not final and is subject to change.

Java™ Platform
Standard Ed. 7

DRAFT ea-b76

javax.management.openmbean
Annotation Type MXBeanMappingClass


@Retention(value=RUNTIME)
@Target(value=TYPE)
@Documented
@Inherited
public @interface MXBeanMappingClass

Specifies the MXBean mapping to be used for this Java type.

See Also:
MXBeanMapping

Required Element Summary
Modifier and Type Required Element and Description
 Class<? extends MXBeanMapping> value
          The MXBeanMapping class to be used to map the annotated type.
 

Element Detail

value

public abstract Class<? extends MXBeanMapping> value

The MXBeanMapping class to be used to map the annotated type. This class must have a public constructor with a single argument of type Type. The constructor will be called with the annotated type as an argument. See the MXBeanMapping documentation for an example.

If the MXBeanMapping cannot in fact handle that type, the constructor should throw an OpenDataException. If the constructor throws this or any other exception then an MXBean in which the annotated type appears is invalid, and registering it in the MBean Server will produce a NotCompliantMBeanException.


Java™ Platform
Standard Ed. 7

DRAFT ea-b76

Submit a bug or feature

Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.