public synchronized boolean removeRegistrationPoint(RegistrationPoint toRemove) { PathAddress removedAddress = toRemove.getAddress(); if (!registrationPoints.containsKey(removedAddress)) { return false; } List<RegistrationPoint> registrationPoints = this.registrationPoints.get(removedAddress); if (toRemove.getAttribute() == null){ registrationPoints.clear(); } else { registrationPoints.remove(toRemove); } if (registrationPoints.isEmpty()) { this.registrationPoints.remove(removedAddress); } return true; }
public synchronized boolean removeRegistrationPoint(RegistrationPoint toRemove) { PathAddress removedAddress = toRemove.getAddress(); if (!registrationPoints.containsKey(removedAddress)) { return false; } List<RegistrationPoint> registrationPoints = this.registrationPoints.get(removedAddress); if (toRemove.getAttribute() == null){ registrationPoints.clear(); } else { registrationPoints.remove(toRemove); } if (registrationPoints.isEmpty()) { this.registrationPoints.remove(removedAddress); } return true; }
if (rp.getAttribute() == null) { msg = msg.append('\n').append(ControllerLogger.ROOT_LOGGER.requirementPointSimple(reg.getDependentName(), rp.getAddress().toCLIStyleString())); } else { msg = msg.append('\n').append(ControllerLogger.ROOT_LOGGER.requirementPointFull(reg.getDependentName(), rp.getAttribute(), rp.getAddress().toCLIStyleString()));
if (rp.getAttribute() == null) { msg = msg.append('\n').append(ControllerLogger.ROOT_LOGGER.requirementPointSimple(reg.getDependentName(), rp.getAddress().toCLIStyleString())); } else { msg = msg.append('\n').append(ControllerLogger.ROOT_LOGGER.requirementPointFull(reg.getDependentName(), rp.getAttribute(), rp.getAddress().toCLIStyleString()));