Skip to content
Permalink
Browse files
Adds all interfaces to proxy if deploying concrete application
  • Loading branch information
nakomis committed Jan 14, 2016
1 parent d058158 commit 13f043867d908c66f5d67c476f387a176d26d90a
Showing 1 changed file with 2 additions and 0 deletions.
@@ -55,6 +55,7 @@
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 <T extends Entity> T createEntityProxy(EntitySpec<T> spec, T entity) {
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());

0 comments on commit 13f0438

Please sign in to comment.