brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sjcorbett <...@git.apache.org>
Subject [GitHub] incubator-brooklyn pull request: Rebind read only
Date Wed, 01 Oct 2014 14:22:49 GMT
Github user sjcorbett commented on a diff in the pull request:

    https://github.com/apache/incubator-brooklyn/pull/197#discussion_r18281345
  
    --- Diff: api/src/main/java/brooklyn/management/ManagementContext.java ---
    @@ -205,5 +212,12 @@
     
         /** Active entitlements checker instance. */
         EntitlementManager getEntitlementManager();
    -    
    + 
    +
    +    /** as {@link #lookup(String, Class)} but not constraining the return type */
    +    public BrooklynObject lookup(String id);
    +    /** finds an entity with the given ID known at this management context */
    +    // TODO in future support policies etc
    +    public <T> T lookup(String id, Class<T> type); 
    --- End diff --
    
    Worth constraining `T` to extend BrooklynObject?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message