Lines Matching refs:descriptor

35  * <p>Provides general information for an MBean descriptor object.
71 private transient Descriptor descriptor;
91 * @param descriptor The descriptor for the feature. This may be null
92 * which is equivalent to an empty descriptor.
97 Descriptor descriptor) {
100 this.descriptor = descriptor;
122 * Returns the descriptor for the feature. Changing the returned value
123 * will have no affect on the original descriptor.
125 * @return a descriptor that is either immutable or a copy of the original.
130 return (Descriptor) ImmutableDescriptor.nonNullDescriptor(descriptor).clone();
166 * is called first to serialize the object except the field {@code descriptor}
167 * which is declared as transient. The field {@code descriptor} is serialized
170 * <li>If {@code descriptor} is an instance of the class
175 * {@code descriptor}, respectively as a {@code String[]} and an
180 * to serialize directly the field {@code descriptor}.
188 if (descriptor != null &&
189 descriptor.getClass() == ImmutableDescriptor.class) {
193 final String[] names = descriptor.getFieldNames();
196 out.writeObject(descriptor.getFieldValues(names));
200 out.writeObject(descriptor);
211 * {@code descriptor}, which is not serialized in the default way. Then the method
213 * {@code descriptor} is deserialized according to the value of the byte value:
217 * the field values (a {@code Object[]}) of the {@code descriptor}.
220 * {@code descriptor};</li>
221 * <li>0. The value for the field {@code descriptor} is obtained directly
223 * If the obtained value is null, the field {@code descriptor} is set to
226 * an earlier version of the JMX API. The field {@code descriptor} is set
243 descriptor = ImmutableDescriptor.EMPTY_DESCRIPTOR;
246 descriptor = new ImmutableDescriptor(names, values);
251 descriptor = (Descriptor)in.readObject();
253 if (descriptor == null) {
254 descriptor = ImmutableDescriptor.EMPTY_DESCRIPTOR;
259 descriptor = ImmutableDescriptor.EMPTY_DESCRIPTOR;