src/java.management/share/classes/javax/management/MBeanConstructorInfo.java
author darcy
Wed, 23 Oct 2019 13:01:40 -0700
changeset 58766 54ffb15c4839
parent 47216 71c04702a3d5
permissions -rw-r--r--
8232442: Suppress warnings on non-serializable non-transient instance fields in java.management.* Reviewed-by: rriggs, mchung
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
23010
6dadb192ad81 8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013
lana
parents: 20174
diff changeset
     2
 * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4156
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4156
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4156
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4156
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4156
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package javax.management;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import com.sun.jmx.mbeanserver.Introspector;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
import java.lang.annotation.Annotation;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import java.lang.reflect.Constructor;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
import java.util.Arrays;
19852
f8e5a6c5d379 8023669: MBean*Info.hashCode : NPE
sjiang
parents: 5506
diff changeset
    32
import java.util.Objects;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 * Describes a constructor exposed by an MBean.  Instances of this
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 * class are immutable.  Subclasses may be mutable but this is not
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * recommended.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
public class MBeanConstructorInfo extends MBeanFeatureInfo implements Cloneable {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
    /* Serial version */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
    static final long serialVersionUID = 4433990064191844427L;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
    static final MBeanConstructorInfo[] NO_CONSTRUCTORS =
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
        new MBeanConstructorInfo[0];
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
    /** @see MBeanInfo#arrayGettersSafe */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
    private final transient boolean arrayGettersSafe;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
     * @serial The signature of the method, that is, the class names of the arguments.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
    private final MBeanParameterInfo[] signature;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
    /**
32034
05676cfd40b5 8133040: docs: replace <tt> tags (obsolete in html5) for java.management
avstepan
parents: 25859
diff changeset
    58
     * Constructs an {@code MBeanConstructorInfo} object.  The
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
     * {@link Descriptor} of the constructed object will include
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
     * fields contributed by any annotations on the {@code
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
     * Constructor} object that contain the {@link DescriptorKey}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
     * meta-annotation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
     * @param description A human readable description of the operation.
32034
05676cfd40b5 8133040: docs: replace <tt> tags (obsolete in html5) for java.management
avstepan
parents: 25859
diff changeset
    65
     * @param constructor The {@code java.lang.reflect.Constructor}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
     * object describing the MBean constructor.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
     */
1510
e747d3193ef2 6763639: Remove "rawtypes" warnings from JMX code
emcmanus
parents: 2
diff changeset
    68
    public MBeanConstructorInfo(String description, Constructor<?> constructor) {
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
        this(constructor.getName(), description,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
             constructorSignature(constructor),
4156
acaa49a2768a 6851617: Remove JSR 255 (JMX API 2.0) from JDK 7
emcmanus
parents: 1714
diff changeset
    71
             Introspector.descriptorForElement(constructor));
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
    /**
32034
05676cfd40b5 8133040: docs: replace <tt> tags (obsolete in html5) for java.management
avstepan
parents: 25859
diff changeset
    75
     * Constructs an {@code MBeanConstructorInfo} object.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
     * @param name The name of the constructor.
32034
05676cfd40b5 8133040: docs: replace <tt> tags (obsolete in html5) for java.management
avstepan
parents: 25859
diff changeset
    78
     * @param signature {@code MBeanParameterInfo} objects
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
     * describing the parameters(arguments) of the constructor.  This
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
     * may be null with the same effect as a zero-length array.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
     * @param description A human readable description of the constructor.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
    public MBeanConstructorInfo(String name,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
                                String description,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
                                MBeanParameterInfo[] signature) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
        this(name, description, signature, null);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
    /**
32034
05676cfd40b5 8133040: docs: replace <tt> tags (obsolete in html5) for java.management
avstepan
parents: 25859
diff changeset
    90
     * Constructs an {@code MBeanConstructorInfo} object.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
     * @param name The name of the constructor.
32034
05676cfd40b5 8133040: docs: replace <tt> tags (obsolete in html5) for java.management
avstepan
parents: 25859
diff changeset
    93
     * @param signature {@code MBeanParameterInfo} objects
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
     * describing the parameters(arguments) of the constructor.  This
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
     * may be null with the same effect as a zero-length array.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
     * @param description A human readable description of the constructor.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
     * @param descriptor The descriptor for the constructor.  This may be null
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
     * which is equivalent to an empty descriptor.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
    public MBeanConstructorInfo(String name,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
                                String description,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
                                MBeanParameterInfo[] signature,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
                                Descriptor descriptor) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
        super(name, description, descriptor);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
        if (signature == null || signature.length == 0)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
            signature = MBeanParameterInfo.NO_PARAMS;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
        else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
            signature = signature.clone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
        this.signature = signature;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
        this.arrayGettersSafe =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
            MBeanInfo.arrayGettersSafe(this.getClass(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
                                       MBeanConstructorInfo.class);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
     * <p>Returns a shallow clone of this instance.  The clone is
32034
05676cfd40b5 8133040: docs: replace <tt> tags (obsolete in html5) for java.management
avstepan
parents: 25859
diff changeset
   121
     * obtained by simply calling {@code super.clone()}, thus calling
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
     * the default native shallow cloning mechanism implemented by
32034
05676cfd40b5 8133040: docs: replace <tt> tags (obsolete in html5) for java.management
avstepan
parents: 25859
diff changeset
   123
     * {@code Object.clone()}.  No deeper cloning of any internal
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
     * field is made.</p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
     * <p>Since this class is immutable, cloning is chiefly of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
     * interest to subclasses.</p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
     public Object clone () {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
         try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
             return super.clone() ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
         } catch (CloneNotSupportedException e) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
             // should not happen as this class is cloneable
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
             return null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
         }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
     }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
     * <p>Returns the list of parameters for this constructor.  Each
32034
05676cfd40b5 8133040: docs: replace <tt> tags (obsolete in html5) for java.management
avstepan
parents: 25859
diff changeset
   140
     * parameter is described by an {@code MBeanParameterInfo}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
     * object.</p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
     * <p>The returned array is a shallow copy of the internal array,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
     * which means that it is a copy of the internal array of
32034
05676cfd40b5 8133040: docs: replace <tt> tags (obsolete in html5) for java.management
avstepan
parents: 25859
diff changeset
   145
     * references to the {@code MBeanParameterInfo} objects but
05676cfd40b5 8133040: docs: replace <tt> tags (obsolete in html5) for java.management
avstepan
parents: 25859
diff changeset
   146
     * that each referenced {@code MBeanParameterInfo} object is
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
     * not copied.</p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
     *
32034
05676cfd40b5 8133040: docs: replace <tt> tags (obsolete in html5) for java.management
avstepan
parents: 25859
diff changeset
   149
     * @return  An array of {@code MBeanParameterInfo} objects.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
    public MBeanParameterInfo[] getSignature() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
        if (signature.length == 0)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
            return signature;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
        else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
            return signature.clone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
    private MBeanParameterInfo[] fastGetSignature() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
        if (arrayGettersSafe)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
            return signature;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
        else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
            return getSignature();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
    public String toString() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
        return
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
            getClass().getName() + "[" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
            "description=" + getDescription() + ", " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
            "name=" + getName() + ", " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
            "signature=" + Arrays.asList(fastGetSignature()) + ", " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
            "descriptor=" + getDescriptor() +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
            "]";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
     * Compare this MBeanConstructorInfo to another.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
     * @param o the object to compare to.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
     *
32034
05676cfd40b5 8133040: docs: replace <tt> tags (obsolete in html5) for java.management
avstepan
parents: 25859
diff changeset
   180
     * @return true if and only if {@code o} is an MBeanConstructorInfo such
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
     * that its {@link #getName()}, {@link #getDescription()},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
     * {@link #getSignature()}, and {@link #getDescriptor()}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
     * values are equal (not necessarily
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
     * identical) to those of this MBeanConstructorInfo.  Two
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
     * signature arrays are equal if their elements are pairwise
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
     * equal.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
    public boolean equals(Object o) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
        if (o == this)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
            return true;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
        if (!(o instanceof MBeanConstructorInfo))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
            return false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
        MBeanConstructorInfo p = (MBeanConstructorInfo) o;
20174
360791181f66 8023954: MBean*Info.equals: throw NPE
sjiang
parents: 19852
diff changeset
   194
        return (Objects.equals(p.getName(), getName()) &&
360791181f66 8023954: MBean*Info.equals: throw NPE
sjiang
parents: 19852
diff changeset
   195
                Objects.equals(p.getDescription(), getDescription()) &&
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
                Arrays.equals(p.fastGetSignature(), fastGetSignature()) &&
20174
360791181f66 8023954: MBean*Info.equals: throw NPE
sjiang
parents: 19852
diff changeset
   197
                Objects.equals(p.getDescriptor(), getDescriptor()));
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
    /* Unlike attributes and operations, it's quite likely we'll have
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
       more than one constructor with the same name and even
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
       description, so we include the parameter array in the hashcode.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
       We don't include the description, though, because it could be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
       quite long and yet the same between constructors.  Likewise for
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
       the descriptor.  */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
    public int hashCode() {
19852
f8e5a6c5d379 8023669: MBean*Info.hashCode : NPE
sjiang
parents: 5506
diff changeset
   207
        return Objects.hash(getName()) ^ Arrays.hashCode(fastGetSignature());
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
1510
e747d3193ef2 6763639: Remove "rawtypes" warnings from JMX code
emcmanus
parents: 2
diff changeset
   210
    private static MBeanParameterInfo[] constructorSignature(Constructor<?> cn) {
e747d3193ef2 6763639: Remove "rawtypes" warnings from JMX code
emcmanus
parents: 2
diff changeset
   211
        final Class<?>[] classes = cn.getParameterTypes();
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
        final Annotation[][] annots = cn.getParameterAnnotations();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
        return MBeanOperationInfo.parameters(classes, annots);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
}