Skip to content

Commit

Permalink
Adds all interfaces to proxy if deploying concrete application
Browse files Browse the repository at this point in the history
  • Loading branch information
nakomis committed Jan 14, 2016
1 parent d058158 commit 13f0438
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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());

Expand Down

0 comments on commit 13f0438

Please sign in to comment.