brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henev...@apache.org
Subject [09/24] incubator-brooklyn git commit: Adds all interfaces to proxy if deploying concrete application
Date Thu, 14 Jan 2016 23:54:23 GMT
Adds all interfaces to proxy if deploying concrete application


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

Branch: refs/heads/master
Commit: 13f043867d908c66f5d67c476f387a176d26d90a
Parents: d058158
Author: Martin Harris <github@nakomis.com>
Authored: Thu Jan 14 11:56:49 2016 +0000
Committer: Martin Harris <github@nakomis.com>
Committed: Thu Jan 14 11:56:49 2016 +0000

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


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/13f04386/brooklyn-server/core/src/main/java/org/apache/brooklyn/core/objs/proxy/InternalEntityFactory.java
----------------------------------------------------------------------
diff --git a/brooklyn-server/core/src/main/java/org/apache/brooklyn/core/objs/proxy/InternalEntityFactory.java
b/brooklyn-server/core/src/main/java/org/apache/brooklyn/core/objs/proxy/InternalEntityFactory.java
index 3b0795b..8914ca4 100644
--- a/brooklyn-server/core/src/main/java/org/apache/brooklyn/core/objs/proxy/InternalEntityFactory.java
+++ b/brooklyn-server/core/src/main/java/org/apache/brooklyn/core/objs/proxy/InternalEntityFactory.java
@@ -55,6 +55,7 @@ import org.apache.brooklyn.util.core.flags.FlagUtils;
 import org.apache.brooklyn.util.core.task.Tasks;
 import org.apache.brooklyn.util.exceptions.Exceptions;
 import org.apache.brooklyn.util.javalang.AggregateClassLoader;
+import org.apache.brooklyn.util.javalang.Reflections;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -99,6 +100,7 @@ public class InternalEntityFactory extends InternalFactory {
             interfaces.add(spec.getType());
         } else {
             log.warn("EntitySpec declared in terms of concrete type "+spec.getType()+"; should
be supplied in terms of interface");
+            interfaces.addAll(Reflections.getAllInterfaces(spec.getType()));
         }
         interfaces.addAll(spec.getAdditionalInterfaces());
         


Mime
View raw message