/** * Unregisters all beans that have been registered by an instance of this class. */ protected void unregisterBeans() { Set<ObjectName> snapshot; synchronized (this.registeredBeans) { snapshot = new LinkedHashSet<>(this.registeredBeans); } if (!snapshot.isEmpty()) { logger.debug("Unregistering JMX-exposed beans"); for (ObjectName objectName : snapshot) { doUnregister(objectName); } } }
/** * Unregisters all beans that have been registered by an instance of this class. */ protected void unregisterBeans() { Set<ObjectName> snapshot; synchronized (this.registeredBeans) { snapshot = new LinkedHashSet<>(this.registeredBeans); } if (!snapshot.isEmpty()) { logger.debug("Unregistering JMX-exposed beans"); for (ObjectName objectName : snapshot) { doUnregister(objectName); } } }
/** * Unregisters all beans that have been registered by an instance of this class. */ protected void unregisterBeans() { Set<ObjectName> snapshot; synchronized (this.registeredBeans) { snapshot = new LinkedHashSet<>(this.registeredBeans); } if (!snapshot.isEmpty()) { logger.debug("Unregistering JMX-exposed beans"); for (ObjectName objectName : snapshot) { doUnregister(objectName); } } }