/** * Creates a new requirement registration. * * @param requiredName the name of the required capability * @param dependentName the name of the capability that requires {@code requiredName} * @param dependentContext context in which the dependent capability exists * @param registrationPoint point in the configuration model that triggered the requirement */ protected RequirementRegistration(String requiredName, String dependentName, CapabilityScope dependentContext, RegistrationPoint registrationPoint) { this(requiredName, dependentName, dependentContext); putRegistrationPoint(registrationPoint); }
/** * Creates a new requirement registration. * * @param requiredName the name of the required capability * @param dependentName the name of the capability that requires {@code requiredName} * @param dependentContext context in which the dependent capability exists * @param registrationPoint point in the configuration model that triggered the requirement */ protected RequirementRegistration(String requiredName, String dependentName, CapabilityScope dependentContext, RegistrationPoint registrationPoint) { this(requiredName, dependentName, dependentContext); putRegistrationPoint(registrationPoint); }
public synchronized boolean addRegistrationPoint(RegistrationPoint toAdd) { PathAddress addedAddress = toAdd.getAddress(); if (registrationPoints.containsKey(addedAddress)) { List<RegistrationPoint> registrationPoints = this.registrationPoints.get(addedAddress); if (registrationPoints.contains(toAdd)) { return false; } } putRegistrationPoint(toAdd); return true; }
public synchronized boolean addRegistrationPoint(RegistrationPoint toAdd) { PathAddress addedAddress = toAdd.getAddress(); if (registrationPoints.containsKey(addedAddress)) { List<RegistrationPoint> registrationPoints = this.registrationPoints.get(addedAddress); if (registrationPoints.contains(toAdd)) { return false; } } putRegistrationPoint(toAdd); return true; }