001 package org.shiftone.jrat.core.jmx; 002 003 004 import org.shiftone.jrat.util.log.Logger; 005 006 007 /** 008 * @author jeff@shiftone.org (Jeff Drost) 009 */ 010 public class NullJmxRegistry implements JmxRegistry { 011 012 private static final Logger LOG = Logger.getLogger(NullJmxRegistry.class); 013 public static final JmxRegistry INSTANCE = new NullJmxRegistry(); 014 015 private NullJmxRegistry() { 016 } 017 018 019 public boolean isReady() { 020 return false; 021 } 022 023 024 public void registerMBean(Object object, String name) { 025 LOG.debug("registerMBean() doing nothing - jmx disabled"); 026 } 027 }