public static <T extends PlatformManagedObject> List<T> getPlatformMXBeans (MBeanServerConnection connection, Class<T> mxbeanInterface) throws IOException

Returns the list of the platform MXBean proxies for forwarding the method calls of the mxbeanInterface through the given MBeanServerConnection. 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.

Parameters:
connection    the MBeanServerConnection to forward to.
mxbeanInterface    a management interface for a platform MXBean
<T>    an mxbeanInterface type parameter

Returns:  the list of platform MXBean proxies for forwarding the method calls of the mxbeanInterface through the given MBeanServerConnection.

Exceptions:
IllegalArgumentException    if mxbeanInterface is not a platform management interface.
java.io.IOException    if a communication problem occurred when accessing the MBeanServerConnection.

See also:
newPlatformMXBeanProxy

Since:  1.7