ComponentPropertyTypeDataCollector(String propertyDefKey, Annotation componentPropertyAnnotation, DeclarativeServicesAnnotationError details) { this.propertyDefKey = requireNonNull(propertyDefKey); // Component Property annotations added in 1.4, but they just map to // normal DS properties, so there's not really a need to require DS // 1.4. Therefore we just leave the required version as is this.memberDescriptor = null; this.details = details; // Add in the defined attributes for (Entry<String, Object> entry : componentPropertyAnnotation.entrySet()) { String key = entry.getKey(); Object value = entry.getValue(); handleValue(key, value, value instanceof TypeRef, null); } }
ComponentPropertyTypeDataCollector(String propertyDefKey, Annotation componentPropertyAnnotation, DeclarativeServicesAnnotationError details) { this.propertyDefKey = requireNonNull(propertyDefKey); // Component Property annotations added in 1.4, but they just map to // normal DS properties, so there's not really a need to require DS // 1.4. Therefore we just leave the required version as is this.memberDescriptor = null; this.details = details; // Add in the defined attributes for (Entry<String, Object> entry : componentPropertyAnnotation.entrySet()) { String key = entry.getKey(); Object value = entry.getValue(); handleValue(key, value, value instanceof TypeRef, null); } }
private Attrs getAttributes(Annotation a, String... ignores) { Attrs attrs = new Attrs(); outer: for (Entry<String, Object> entry : a.entrySet()) { String key = entry.getKey(); for (String ignore : ignores) { if (key.equals(ignore)) continue outer; } attrs.putTyped(key, entry.getValue()); } return attrs; }
private Attrs getAttributes(Annotation a, String... ignores) { Attrs attrs = new Attrs(); outer: for (Entry<String, Object> entry : a.entrySet()) { String key = entry.getKey(); for (String ignore : ignores) { if (key.equals(ignore)) continue outer; } attrs.putTyped(key, entry.getValue()); } return attrs; }
private Element annotatedToElement(Annotation annotation) { Collection<Element> properties = Create.set(); for (Entry<String, Object> entry : annotation.entrySet()) { addAnnotationMember(properties, entry.getKey(), entry.getValue()); } return new Element(ANNOTATED, annotation.getName() .getFQN(), properties, CHANGED, CHANGED, null); }
private Element annotatedToElement(Annotation annotation) { Collection<Element> properties = Create.set(); for (Entry<String, Object> entry : annotation.entrySet()) { addAnnotationMember(properties, entry.getKey(), entry.getValue()); } return new Element(ANNOTATED, annotation.getName() .getFQN(), properties, CHANGED, CHANGED, null); }