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 MXBeanMappingFactoryClass


@Retention(value=RUNTIME)
@Target(value={TYPE,PACKAGE})
@Documented
@Inherited
public @interface MXBeanMappingFactoryClass

Specifies the MXBean mapping factory to be used for Java types in an MXBean interface, or in all MXBean interfaces in a package.

Applying a mapping factory to all Java types in an MXBean interface looks like this:

 @MXBeanMappingFactoryClass(MyLinkedListMappingFactory.class)
 public interface SomethingMXBean {
     public MyLinkedList getSomething();
 }
 

Applying a mapping factory to all Java types in all MXBean interfaces in a package, say com.example.mxbeans, looks like this. In the package source directory, create a file called package-info.java with these contents:

 @MXBeanMappingFactoryClass(MyLinkedListMappingFactory.class)
 package com.example.mxbeans;
 

See Also:
MXBeanMappingFactory

Required Element Summary
Modifier and Type Required Element and Description
 Class<? extends MXBeanMappingFactory> value
          The MXBeanMappingFactory class to be used to map types in the annotated interface or package.
 

Element Detail

value

public abstract Class<? extends MXBeanMappingFactory> value

The MXBeanMappingFactory class to be used to map types in the annotated interface or package. This class must have a public constructor with no arguments. See the MXBeanMappingFactory documentation for an example.


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.