Github user alasdairhodge commented on a diff in the pull request:
https://github.com/apache/brooklyn-server/pull/291#discussion_r74521683
--- Diff:
camp/camp-brooklyn/src/main/java/org/apache/brooklyn/camp/brooklyn/spi/dsl/methods/BrooklynDslCommon.java
---
@@ -327,25 +337,74 @@ public FormatString(String pattern, Object[] args) {
private static final long serialVersionUID = 8878388748085419L;
- private String typeName;
- private Class<?> type;
- private Map<String,Object> fields, config;
+ private final String typeName;
+ private final String factoryMethodName;
+ private final Class<?> type;
+ private final List<Object> constructorArgs, factoryMethodArgs;
+ private final Map<String, Object> fields, config;
+
+ public DslObject(
+ String typeName,
+ List<Object> constructorArgs,
+ Map<String, Object> fields,
+ Map<String, Object> config) {
--- End diff --
I originally attempted this throughout, but it caused issues with the
`Map.put` calls on lines 435, 437, 443, 445, as well as the call to
`Reflections.invokeMethodFromArgs` on line 483.
---
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.
---