Disables the registry by replacing it with a no-op implementation. After calling this method, the registry will not load or process MBean descriptors.
()
| 151 | * the registry will not load or process MBean descriptors. |
| 152 | */ |
| 153 | public static synchronized void disableRegistry() { |
| 154 | if (registry == null) { |
| 155 | registry = new NoDescriptorRegistry(); |
| 156 | } else if (!(registry instanceof NoDescriptorRegistry)) { |
| 157 | log.warn(sm.getString("registry.noDisable")); |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | |
| 162 | // -------------------- Generic methods -------------------- |