|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Documented @Target(value=TYPE) @Retention(value=RUNTIME) @Inherited public @interface AMXMetadata
Annotation to contol exactly how the type value in the ObjectName is extracted from a class when registering an instance of that class. The absence of this annotation is the same as the default values. Note that this is simply an application of the general @DescriptorKey mechanism, but these particular metadata attributes control some of the behavior of the AMXMBeanInterface API.
Note that supportsAdoption is not included here, because that attribute is always false for gmbal.
Optional Element Summary | |
---|---|
java.lang.String |
genericInterfaceName
Return the generic AMXMBeanInterface interface to be used. |
java.lang.String |
group
String denoting classification of MBean. |
boolean |
immutableInfo
True if the MBeanInfo is invariant, that is, has the same value for the lifetime of the MBean. |
java.lang.String |
interfaceClassName
Defines the name of the interface to use when generating a proxy for this class. |
boolean |
isSingleton
True if only one MBean of this type may be created inside the same parent container |
java.lang.String[] |
subTypes
Return the list of types that are legal as types of children of this type. |
java.lang.String |
type
An explicit type to use for the MBean. |
@DescriptorKey(value=) public abstract boolean isSingleton
@DescriptorKey(value=) public abstract java.lang.String group
@DescriptorKey(value=) public abstract java.lang.String[] subTypes
@DescriptorKey(value=) public abstract java.lang.String genericInterfaceName
@DescriptorKey(value=) public abstract boolean immutableInfo
@DescriptorKey(value=) public abstract java.lang.String interfaceClassName
@DescriptorKey(value="type") public abstract java.lang.String type
Note that this is NOT part of the AMXMBeanInterface-defined metadata, but gmbal needs it here to have a place to override the type.
Gmbal determines the type name as follows:
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |