public static void registerMbeans(MBeanServer mBeanServer){
  try {
    mBeanServer.registerMBean(new Log4jMXBeanImp(),Log4jMXBeanImp.getObjectName());
    mBeanServer.registerMBean(new ExceptionMXBeanImp(),ExceptionMXBeanImp.getObjectName());
    mBeanServer.registerMBean(new ExceptionDeltaMXBeanImp(),ExceptionDeltaMXBeanImp.getObjectName());
    mBeanServer.registerMBean(new Log4jDeltaMXBeanImp(),Log4jDeltaMXBeanImp.getObjectName());
    mBeanServer.registerMBean(new JamonMXBeanImp(),JamonMXBeanImp.getObjectName());
    mBeanServer.registerMBean(new HttpStatusMXBeanImp(),HttpStatusMXBeanImp.getObjectName());
    mBeanServer.registerMBean(new HttpStatusDeltaMXBeanImp(),HttpStatusDeltaMXBeanImp.getObjectName());
    registerGcMXBean(mBeanServer);
    registerMbeansFromPropsFile(mBeanServer);
  }
 catch (  Exception e) {
    throw new RuntimeException(e);
  }
}

public static void registerMbeans ( MBeanServer mBeanServer ) { try { mBeanServer . registerMBean ( new Log4jMXBeanImp ( ) , Log4jMXBeanImp . getObjectName ( ) ) ; mBeanServer . registerMBean ( new ExceptionMXBeanImp ( ) , ExceptionMXBeanImp . getObjectName ( ) ) ; mBeanServer . registerMBean ( new ExceptionDeltaMXBeanImp ( ) , ExceptionDeltaMXBeanImp . getObjectName ( ) ) ; mBeanServer . registerMBean ( new Log4jDeltaMXBeanImp ( ) , Log4jDeltaMXBeanImp . getObjectName ( ) ) ; mBeanServer . registerMBean ( new JamonMXBeanImp ( ) , JamonMXBeanImp . getObjectName ( ) ) ; mBeanServer . registerMBean ( new HttpStatusMXBeanImp ( ) , HttpStatusMXBeanImp . getObjectName ( ) ) ; mBeanServer . registerMBean ( new HttpStatusDeltaMXBeanImp ( ) , HttpStatusDeltaMXBeanImp . getObjectName ( ) ) ; registerGcMXBean ( mBeanServer ) ; registerMbeansFromPropsFile ( mBeanServer ) ; } catch ( Exception e ) { throw new RuntimeException ( e ) ; } }
register all jamon related mbeans with the passed in mbeanserver
