The class javax.management.StandardMBean implements MBeanRegistration as of Mustang. But if you have a StandardMBean constructed as new StandardMBean(impl, SomethingMBean.class), and if the impl object itself implements MBeanRegistration, the MBeanRegistration methods are not forwarded to impl as you might expect. This is for compatibility reasons: it would have changed the behaviour of existing code. We could have a way of creating a StandardMBean or StandardEmitterMBean that explicitly asks for MBeanRegistration methods to be forwarded to the impl object.
|