Return-Path: X-Original-To: apmail-brooklyn-commits-archive@minotaur.apache.org Delivered-To: apmail-brooklyn-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C2DEE18CA8 for ; Thu, 14 Jan 2016 23:54:16 +0000 (UTC) Received: (qmail 95447 invoked by uid 500); 14 Jan 2016 23:54:16 -0000 Delivered-To: apmail-brooklyn-commits-archive@brooklyn.apache.org Received: (qmail 95382 invoked by uid 500); 14 Jan 2016 23:54:16 -0000 Mailing-List: contact commits-help@brooklyn.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.apache.org Delivered-To: mailing list commits@brooklyn.apache.org Received: (qmail 95011 invoked by uid 99); 14 Jan 2016 23:54:16 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jan 2016 23:54:16 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id EE9CBE38A3; Thu, 14 Jan 2016 23:54:15 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: heneveld@apache.org To: commits@brooklyn.apache.org Date: Thu, 14 Jan 2016 23:54:23 -0000 Message-Id: <91508abdb59a46eda032a85fba03f123@git.apache.org> In-Reply-To: <084c0a2705884477b304d4f12991393d@git.apache.org> References: <084c0a2705884477b304d4f12991393d@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [09/24] incubator-brooklyn git commit: Adds all interfaces to proxy if deploying concrete application 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 Authored: Thu Jan 14 11:56:49 2016 +0000 Committer: Martin Harris 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());