public void register ( ) { try { objectName = consObjectName ( domain , type , keysString ) ; MBeanServer mbs = ManagementFactory . getPlatformMBeanServer ( ) ; mbs . registerMBean ( this , objectName ) ; } catch ( Exception e ) { objectName = null ; throw new RuntimeException ( e ) ; } }
Registers this bean on platform MBeanServer .