MBeanExporter traditionally implements various methods for managed resource registration from the MBeanExportOperations interface. Since that interface does not deal with bean keys, there is no convenient method for registering an object with a bean key similar to MBean autodetection. Such an overloaded registerManagedResource(Object managedResource, String beanKey) method can easily be added to the MBeanExporter class itself.
MBeanExportertraditionally implements various methods for managed resource registration from theMBeanExportOperationsinterface. Since that interface does not deal with bean keys, there is no convenient method for registering an object with a bean key similar to MBean autodetection. Such an overloadedregisterManagedResource(Object managedResource, String beanKey)method can easily be added to theMBeanExporterclass itself.