public void add(String key, Attrs attrs) { while (containsKey(key)) key += "~"; put(key, attrs); }
public void putAllIfAbsent(Map<String, ? extends Attrs> map) { for (Map.Entry<String, ? extends Attrs> entry : map.entrySet()) { if (!containsKey(entry.getKey())) put(entry.getKey(), entry.getValue()); } }
public void putAllIfAbsent(Map<String, ? extends Attrs> map) { for (Map.Entry<String, ? extends Attrs> entry : map.entrySet()) { if (!containsKey(entry.getKey())) put(entry.getKey(), entry.getValue()); } }
public void add(String key, Attrs attrs) { while (containsKey(key)) key += "~"; put(key, attrs); }
public void add(String key, Attrs attrs) { while ( containsKey(key)) key += Constants.DUPLICATE_MARKER; put(key,attrs); } public boolean containsKey(final String name) {
public void add(String key, Attrs attrs) { while ( containsKey(key)) key += Constants.DUPLICATE_MARKER; put(key,attrs); } public boolean containsKey(final String name) {
public void putAllIfAbsent(Map<String, ? extends Attrs> map) { for (Map.Entry<String, ? extends Attrs> entry : map.entrySet()) { if (!containsKey(entry.getKey())) put(entry.getKey(), entry.getValue()); } }
public void putAllIfAbsent(Map<String, ? extends Attrs> map) { for (Map.Entry<String, ? extends Attrs> entry : map.entrySet()) { if (!containsKey(entry.getKey())) put(entry.getKey(), entry.getValue()); } }
public void add(String key, Attrs attrs) { while (containsKey(key)) key += "~"; put(key, attrs); }
public void putAllIfAbsent(Map<String, ? extends Attrs> map) { for (Map.Entry<String, ? extends Attrs> entry : map.entrySet()) { if (!containsKey(entry.getKey())) put(entry.getKey(), entry.getValue()); } }
public void putAllIfAbsent(Map<String, ? extends Attrs> map) { for (Map.Entry<String, ? extends Attrs> entry : map.entrySet()) { if (!containsKey(entry.getKey())) put(entry.getKey(), entry.getValue()); } }
public void add(String key, Attrs attrs) { while (containsKey(key)) key += "~"; put(key, attrs); }
/** * Merge all attributes of the given parameters with this */ public void mergeWith(Parameters other, boolean override) { for (Map.Entry<String, Attrs> e : other.entrySet()) { Attrs existing = get(e.getKey()); if (existing == null) { put(e.getKey(), new Attrs(e.getValue())); } else existing.mergeWith(e.getValue(), override); } }
/** * Merge all attributes of the given parameters with this */ public void mergeWith(Parameters other, boolean override) { for (Map.Entry<String, Attrs> e : other.entrySet()) { Attrs existing = get(e.getKey()); if (existing == null) { put(e.getKey(), new Attrs(e.getValue())); } else existing.mergeWith(e.getValue(), override); } }
/** * Merge all attributes of the given parameters with this */ public void mergeWith(Parameters other, boolean override) { for (Map.Entry<String, Attrs> e : other.entrySet()) { Attrs existing = get(e.getKey()); if (existing == null) { put(e.getKey(), new Attrs(e.getValue())); } else existing.mergeWith(e.getValue(), override); } }
/** * Merge all attributes of the given parameters with this */ public void mergeWith(Parameters other, boolean override) { for (Map.Entry<String, Attrs> e : other.entrySet()) { Attrs existing = get(e.getKey()); if (existing == null) { put(e.getKey(), new Attrs(e.getValue())); } else existing.mergeWith(e.getValue(), override); } }
private void addExtenderRequirement(Set<String> requires, List<String> beans, Version version) { Version next = version.bumpMajor(); Parameters p = new Parameters(); Attrs a = new Attrs(); a.put(Constants.FILTER_DIRECTIVE, "\"(&(osgi.extender=osgi.cdi)(version>=" + version + ")(!(version>=" + next + ")))\""); a.put("beans:List<String>", String.join(",", beans)); p.put("osgi.extender", a); String s = p.toString(); requires.add(s); }
private void addExtenderRequirement(Set<String> requires, Version version) { Version next = version.bumpMajor(); Parameters p = new Parameters(); Attrs a = new Attrs(); a.put(Constants.FILTER_DIRECTIVE, "\"(&(" + ExtenderNamespace.EXTENDER_NAMESPACE + "=" + ComponentConstants.COMPONENT_CAPABILITY_NAME + ")(" + ExtenderNamespace.CAPABILITY_VERSION_ATTRIBUTE + ">=" + version + ")(!(" + ExtenderNamespace.CAPABILITY_VERSION_ATTRIBUTE + ">=" + next + ")))\""); p.put(ExtenderNamespace.EXTENDER_NAMESPACE, a); String s = p.toString(); requires.add(s); }
private void doLicense(Annotation a) throws Exception { BundleLicense annotation = a.getAnnotation(BundleLicense.class); Parameters p = new Parameters(); p.put(annotation.name(), getAttributes(a, "name")); add(Constants.BUNDLE_LICENSE, p.toString()); }
private void doLicense(Annotation a) throws Exception { BundleLicense annotation = a.getAnnotation(BundleLicense.class); Parameters p = new Parameters(); p.put(annotation.name(), getAttributes(a, "name")); add(Constants.BUNDLE_LICENSE, p.toString()); }