public static <T extends PlatformManagedObject> T getPlatformMXBean (Class<T> mxbeanInterface)

Returns the platform MXBean implementing the given mxbeanInterface which is specified to have one single instance in the Java virtual machine. This method may return null if the management interface is not implemented in the Java virtual machine (for example, a Java virtual machine with no compilation system does not implement CompilationMXBean); otherwise, this method is equivalent to calling:

    getPlatformMXBeans(Class).get(0);
 

Parameters:
mxbeanInterface    a management interface for a platform MXBean with one single instance in the Java virtual machine if implemented.
<T>    an mxbeanInterface type parameter

Returns:  the platform MXBean that implements mxbeanInterface, or null if not exist.

Exceptions:
IllegalArgumentException    if mxbeanInterface is not a platform management interface or not a singleton platform MXBean.

Since:  1.7