brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From geomacy <...@git.apache.org>
Subject [GitHub] brooklyn-server pull request #786: Freemarker DSL
Date Thu, 03 Aug 2017 15:57:48 GMT
Github user geomacy commented on a diff in the pull request:

    https://github.com/apache/brooklyn-server/pull/786#discussion_r131181517
  
    --- Diff: camp/camp-brooklyn/src/main/java/org/apache/brooklyn/camp/brooklyn/spi/dsl/methods/DslComponent.java
---
    @@ -738,6 +741,82 @@ public String toString() {
             }
         }
     
    +    public Object template(Object template) {
    +        return new DslTemplate(this, template);
    +    }
    +
    +    public Object template(Object template, Map<?, ?> substitutions) {
    +        return new DslTemplate(this, template, substitutions);
    +    }
    +
    +    protected final static class DslTemplate extends BrooklynDslDeferredSupplier<Object>
{
    +        private static final long serialVersionUID = -585564936781673667L;
    +        private DslComponent component;
    +        private Object template;
    +        private Map<?, ?> subsitutions;
    --- End diff --
    
    typo `subsitutions`


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message