Github user aledsage commented on a diff in the pull request:
https://github.com/apache/brooklyn-server/pull/340#discussion_r79985918
--- Diff:
core/src/main/java/org/apache/brooklyn/core/internal/BrooklynProperties.java ---
@@ -298,15 +298,20 @@ private static void
addPropertiesFromMapSupplier(BrooklynProperties p, Supplier<
@Override
public <T> T getConfig(HasConfigKey<T> key);
- @Override
public <T> T getConfig(HasConfigKey<T> key, T defaultValue);
- @Override
+
+ /**
+ * Returns value stored against the given key,
+ * resolved (if it is a Task, possibly blocking), and coerced to the
appropriate type,
+ * or given default value if not set,
+ * unless the default value is null in which case it returns the
default.
+ */
public <T> T getConfig(ConfigKey<T> key, T defaultValue);
- @Override
- public Object getRawConfig(ConfigKey<?> key);
-
+ public Maybe<Object> getConfigRaw(ConfigKey<?> key);
+
+ /** Inheritance is ignored here. Preferable to use {@link
#getConfigRaw(ConfigKey)}. */
--- End diff --
Perhaps we should deprecate this method?
---
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.
---