Github user robertgmoss commented on a diff in the pull request:

    https://github.com/apache/incubator-brooklyn/pull/911#discussion_r39989915
  
    --- Diff: api/src/main/java/org/apache/brooklyn/api/entity/Entity.java ---
    @@ -314,4 +361,80 @@
              */
             <T> void emit(Sensor<T> sensor, T value);
         }
    +    
    +    @Beta
    +    public interface PolicySupport {
    +        /**
    +         * @return an immutable thread-safe view of the policies.
    +         */
    +        Collection<Policy> getPolicies();
    --- End diff --
    
    There is only one method on `Iterable`: `Iterator<T> iterator()`.  And I 
think it would be nicer if we didn't have `policies().getPolicies()`.  I think 
the same should be true of `config()` and `sensor()` etc. they would benefit 
from being an `Iterable`.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to