/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* @since 1.6
*/
new StandardMBeanIntrospector();
return instance;
}
return perInterfaceMap;
}
return mbeanInfoMap;
}
throws NotCompliantMBeanException {
}
boolean isMXBean() {
return false;
}
return m;
}
return m.getName();
}
return m.getGenericReturnType();
}
return m.getGenericParameterTypes();
}
return sig;
}
}
}
}
try {
} catch (IntrospectionException e) {
throw new RuntimeException(e); // should not happen
}
}
}
/* We don't bother saying mxbean=false, and we can't know whether
the info is immutable until we know whether the MBean class
(not interface) is a NotificationBroadcaster. */
return ImmutableDescriptor.EMPTY_DESCRIPTOR;
}
return new ImmutableDescriptor("mxbean=false",
"immutableInfo=" + immutable);
}
/* Return true if and only if we can be sure that the given MBean implementation
* class has immutable MBeanInfo. A Standard MBean that is a
* NotificationBroadcaster is allowed to return different values at
* different times from its getNotificationInfo() method, which is when
* we might not know if it is immutable. But if it is a subclass of
* NotificationBroadcasterSupport and does not override
* getNotificationInfo(), then we know it won't change.
*/
return true;
synchronized (definitelyImmutable) {
try {
} catch (Exception e) {
// Too bad, we'll say no for now.
return false;
}
} else
immutable = false;
}
return immutable;
}
}
private static final PerInterfaceMap<Method>
}