Github user neykov commented on a diff in the pull request:
https://github.com/apache/incubator-brooklyn/pull/1017#discussion_r44534031
--- Diff:
api/src/main/java/org/apache/brooklyn/api/internal/AbstractBrooklynObjectSpec.java
---
@@ -160,5 +172,9 @@ public boolean equals(Object obj) {
public int hashCode() {
return Objects.hashCode(getCatalogItemId(), getDisplayName(),
getType(), getTags());
}
+
+ /** strings inserted as flags, config keys inserted as config keys;
+ * if you want to force one or the other, create a ConfigBag and
convert to the appropriate map type */
+ public abstract SpecT configure(Map<?,?> val);
--- End diff --
Configuration handling between specs seems identical these days, why not
promote all related implementations?
But at least promote abstract `getFlags()/getConfig` as otherwise the
javadoc doesn't make much sense, wdyt?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---