|
Java™ Platform Standard Ed. 7 DRAFT ea-b76 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@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;
MXBeanMappingFactory| 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 |
|---|
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 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.