public static <T extends PlatformManagedObject> List<T> getPlatformMXBeans (Class<T> mxbeanInterface)

Returns the list of platform MXBeans implementing the given mxbeanInterface in the Java virtual machine. The returned list may contain zero, one, or more instances. The number of instances in the returned list is defined in the specification of the given management interface. The order is undefined and there is no guarantee that the list returned is in the same order as previous invocations.

mxbeanInterface    a management interface for a platform MXBean
<T>    an mxbeanInterface type parameter

Returns:  the list of platform MXBeans that implement mxbeanInterface.

IllegalArgumentException    if mxbeanInterface is not a platform management interface.

Since:  1.7