jdk/src/share/classes/javax/management/DescriptorKey.java
changeset 21656 d4c777ccb1db
parent 5506 202f599c92aa
child 23010 6dadb192ad81
equal deleted inserted replaced
21655:55f32ae4f920 21656:d4c777ccb1db
    92  * </pre>
    92  * </pre>
    93  *
    93  *
    94  * <p>then the resulting {@code Descriptor} will contain the following
    94  * <p>then the resulting {@code Descriptor} will contain the following
    95  * fields:</p>
    95  * fields:</p>
    96  *
    96  *
    97  * <table border="2">
    97  * <table border="2" summary="Descriptor Fields">
    98  * <tr><th>Name</th><th>Value</th></tr>
    98  * <tr><th>Name</th><th>Value</th></tr>
    99  * <tr><td>units</td><td>"bytes"</td></tr>
    99  * <tr><td>units</td><td>"bytes"</td></tr>
   100  * <tr><td>descriptionResourceKey</td><td>"bytes.key"</td></tr>
   100  * <tr><td>descriptionResourceKey</td><td>"bytes.key"</td></tr>
   101  * <tr><td>descriptionResourceBundleBaseName</td>
   101  * <tr><td>descriptionResourceBundleBaseName</td>
   102  *     <td>"com.example.foo.MBeanResources"</td></tr>
   102  *     <td>"com.example.foo.MBeanResources"</td></tr>
   141  * <p>An annotation element to be converted into a descriptor field
   141  * <p>An annotation element to be converted into a descriptor field
   142  * can be of any type allowed by the Java language, except an annotation
   142  * can be of any type allowed by the Java language, except an annotation
   143  * or an array of annotations.  The value of the field is derived from
   143  * or an array of annotations.  The value of the field is derived from
   144  * the value of the annotation element as follows:</p>
   144  * the value of the annotation element as follows:</p>
   145  *
   145  *
   146  * <table border="2">
   146  * <table border="2" summary="Descriptor Field Types">
   147  * <tr><th>Annotation element</th><th>Descriptor field</th></tr>
   147  * <tr><th>Annotation element</th><th>Descriptor field</th></tr>
   148  * <tr><td>Primitive value ({@code 5}, {@code false}, etc)</td>
   148  * <tr><td>Primitive value ({@code 5}, {@code false}, etc)</td>
   149  *     <td>Wrapped value ({@code Integer.valueOf(5)},
   149  *     <td>Wrapped value ({@code Integer.valueOf(5)},
   150  *         {@code Boolean.FALSE}, etc)</td></tr>
   150  *         {@code Boolean.FALSE}, etc)</td></tr>
   151  * <tr><td>Class constant (e.g. {@code Thread.class})</td>
   151  * <tr><td>Class constant (e.g. {@code Thread.class})</td>