Registers all the
MBeans from an
Cache instance to a
MBeanServer. It iterates over all the components within
ComponentRegistry and registers all the components annotated with
ManagedAttribute,
ManagedOperation or/and
MBean. If no
MBean server is provided, then the {@link java.lang.management.ManagementFactory#getPlatformMBeanServer()}is being used.
It is immutable: both cache instance and MBeanServer are being passed as arguments to the constructor.
@author Mircea.Markus@jboss.com
@since 3.0