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

    https://github.com/apache/brooklyn-server/pull/70#discussion_r56661929
  
    --- Diff: 
api/src/main/java/org/apache/brooklyn/api/location/LocationRegistry.java ---
    @@ -86,25 +94,62 @@
         public boolean canMaybeResolve(String spec);
         
         /** As {@link #resolve(String, Boolean, Map)}, but unwrapped
    -     * @throws NoSuchElementException if the spec cannot be resolved */
    +     * @throws NoSuchElementException if the spec cannot be resolved 
    +     * @deprecated since 0.9.0 use {@link #getLocationSpec(String, Map)} 
and then manage it as needed*/
    +    @SuppressWarnings("rawtypes")
    +    @Deprecated
         public Location resolve(String spec, @Nullable Map locationFlags);
         
         /**
    -     * As {@link #resolve(String)} but takes collections (of strings or 
locations)
    +     * As {@link #getLocationManaged(String)} but takes collections (of 
strings or locations)
          * <p>
          * Expects a collection of elements being individual location spec 
strings or locations, 
          * and returns a list of resolved (newly created and managed) 
locations.
          * <p>
          * From 0.7.0 this no longer flattens lists (nested lists are 
disallowed) 
          * or parses comma-separated elements (they are resolved as-is)
    -     */
    +     * @deprecated since 0.9.0 use {@link 
#getListOfLocationsManaged(Object)} */
    +    @Deprecated
         public List<Location> resolve(Iterable<?> spec);
         
         /** Takes a string, interpreted as a comma-separated (or JSON style, 
when you need internal double quotes or commas) list;
          * or a list, passed to {@link #resolve(Iterable)}; or null/empty 
(empty list),
    -     * and returns a list of resolved (created and managed) locations */
    +     * and returns a list of resolved (created and managed) locations 
    +     * @deprecated since 0.9.0 use {@link 
#getListOfLocationsManaged(Object)} */
    +    @Deprecated
    --- End diff --
    
    Nice.


---
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