private < T > ServiceRegistration < T > registerMBean ( ObjectName on , Class < T > type , T o ) { Dictionary < String , Object > props = new Hashtable < String , Object > ( ) ; props . put ( "jmx.objectname" , on . toString ( ) ) ; return context . registerService ( type , o , props ) ; }
Used to Register an MBean