brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henev...@apache.org
Subject [06/21] incubator-brooklyn git commit: Add PortRange support for the parameter types
Date Mon, 09 Nov 2015 12:55:15 GMT
Add PortRange support for the parameter types

Won't be set as an attribute though.


Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/f0352000
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/f0352000
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/f0352000

Branch: refs/heads/master
Commit: f0352000dbdf8b704f15edbb4b41bedb8aab4d2f
Parents: 0149bf0
Author: Svetoslav Neykov <svetoslav.neykov@cloudsoftcorp.com>
Authored: Fri Oct 30 18:24:46 2015 +0200
Committer: Svetoslav Neykov <svetoslav.neykov@cloudsoftcorp.com>
Committed: Thu Nov 5 15:23:38 2015 +0200

----------------------------------------------------------------------
 .../java/org/apache/brooklyn/core/objs/BasicSpecParameter.java     | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/f0352000/core/src/main/java/org/apache/brooklyn/core/objs/BasicSpecParameter.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/brooklyn/core/objs/BasicSpecParameter.java b/core/src/main/java/org/apache/brooklyn/core/objs/BasicSpecParameter.java
index d2703ff..5707b8f 100644
--- a/core/src/main/java/org/apache/brooklyn/core/objs/BasicSpecParameter.java
+++ b/core/src/main/java/org/apache/brooklyn/core/objs/BasicSpecParameter.java
@@ -30,6 +30,7 @@ import org.apache.brooklyn.api.catalog.CatalogConfig;
 import org.apache.brooklyn.api.entity.Entity;
 import org.apache.brooklyn.api.entity.EntitySpec;
 import org.apache.brooklyn.api.internal.AbstractBrooklynObjectSpec;
+import org.apache.brooklyn.api.location.PortRange;
 import org.apache.brooklyn.api.mgmt.ManagementContext;
 import org.apache.brooklyn.api.objs.BrooklynObject;
 import org.apache.brooklyn.api.objs.BrooklynType;
@@ -154,6 +155,7 @@ public class BasicSpecParameter<T> implements SpecParameter<T>{
                 .put("float", Float.class)
                 .put("double", Double.class)
                 .put("timestamp", Date.class)
+                .put("port", PortRange.class)
                 .build();
 
         private static final Map<String, Predicate<?>> BUILT_IN_CONSTRAINTS =
ImmutableMap.<String, Predicate<?>>of(


Mime
View raw message