[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-27 Thread ahgittin
Github user ahgittin commented on the pull request: https://github.com/apache/incubator-brooklyn/pull/987#issuecomment-151539546 @geomacy +1 to these living in catalog, sooner rather than later. see the email thread. --- If your project is set up for it, you can reply to this email

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-27 Thread asfgit
Github user asfgit closed the pull request at: https://github.com/apache/incubator-brooklyn/pull/987 --- 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 fea

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-27 Thread neykov
Github user neykov commented on the pull request: https://github.com/apache/incubator-brooklyn/pull/987#issuecomment-151525296 @geomacy I believe this is on the roadmap, but out of scope for this PR. --- If your project is set up for it, you can reply to this email and have your repl

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-27 Thread neykov
Github user neykov commented on a diff in the pull request: https://github.com/apache/incubator-brooklyn/pull/987#discussion_r43128732 --- Diff: core/src/main/java/org/apache/brooklyn/core/objs/AbstractBrooklynObject.java --- @@ -55,8 +57,18 @@ @SetFromFlag(value = "tags")

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-27 Thread neykov
Github user neykov commented on the pull request: https://github.com/apache/incubator-brooklyn/pull/987#issuecomment-151502821 +1 for the double dispatch and `RelationshipType` --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as we

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-27 Thread neykov
Github user neykov commented on the pull request: https://github.com/apache/incubator-brooklyn/pull/987#issuecomment-151502672 Perfect! Will merge. --- 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

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-27 Thread neykov
Github user neykov commented on a diff in the pull request: https://github.com/apache/incubator-brooklyn/pull/987#discussion_r43122838 --- Diff: core/src/main/java/org/apache/brooklyn/core/relations/ByObjectBasicRelationSupport.java --- @@ -0,0 +1,104 @@ +/* + * Licensed t

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-27 Thread ahgittin
Github user ahgittin commented on the pull request: https://github.com/apache/incubator-brooklyn/pull/987#issuecomment-151492373 all changes pushed, including `RelationshipType` and removed generics, and comments for the double dispatch. need to see if tests pass but otherwise ready

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-27 Thread ahgittin
Github user ahgittin commented on the pull request: https://github.com/apache/incubator-brooklyn/pull/987#issuecomment-151477166 Re generics -- your intuition is spot on. There were relatively few places we had to add the correctly-generically-typed interface methods and trivial cast

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-27 Thread ahgittin
Github user ahgittin commented on the pull request: https://github.com/apache/incubator-brooklyn/pull/987#issuecomment-151469204 I've added a comment on the double dispatch via `EntityRelations` statics: ``` /** This abstract impl delegates to {@link EntityRelations} for al

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-27 Thread ahgittin
Github user ahgittin commented on the pull request: https://github.com/apache/incubator-brooklyn/pull/987#issuecomment-151464184 Very helpful comments @neykov . Have done most of them; still need to: * Think about `SelfType` generics * Check double dispatch I saw

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-27 Thread ahgittin
Github user ahgittin commented on a diff in the pull request: https://github.com/apache/incubator-brooklyn/pull/987#discussion_r43109679 --- Diff: core/src/main/java/org/apache/brooklyn/core/relations/ByObjectBasicRelationSupport.java --- @@ -0,0 +1,103 @@ +/* + * Licensed

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-27 Thread ahgittin
Github user ahgittin commented on a diff in the pull request: https://github.com/apache/incubator-brooklyn/pull/987#discussion_r43108978 --- Diff: core/src/main/java/org/apache/brooklyn/core/objs/AbstractBrooklynObject.java --- @@ -55,8 +57,18 @@ @SetFromFlag(value = "tags

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-27 Thread ahgittin
Github user ahgittin commented on a diff in the pull request: https://github.com/apache/incubator-brooklyn/pull/987#discussion_r43107916 --- Diff: core/src/main/java/org/apache/brooklyn/core/entity/EntityRelations.java --- @@ -0,0 +1,160 @@ +/* + * Licensed to the Apache So

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-27 Thread ahgittin
Github user ahgittin commented on a diff in the pull request: https://github.com/apache/incubator-brooklyn/pull/987#discussion_r43107795 --- Diff: api/src/main/java/org/apache/brooklyn/api/objs/BrooklynObject.java --- @@ -141,4 +149,11 @@ */ boolean unsub

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-27 Thread ahgittin
Github user ahgittin commented on a diff in the pull request: https://github.com/apache/incubator-brooklyn/pull/987#discussion_r43107521 --- Diff: core/src/main/java/org/apache/brooklyn/core/catalog/internal/CatalogItemDo.java --- @@ -65,6 +64,19 @@ public SubscriptionSupportInter

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-27 Thread ahgittin
Github user ahgittin commented on a diff in the pull request: https://github.com/apache/incubator-brooklyn/pull/987#discussion_r43106895 --- Diff: api/src/main/java/org/apache/brooklyn/api/mgmt/rebind/mementos/Memento.java --- @@ -77,7 +79,8 @@ public Collection getT

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-27 Thread ahgittin
Github user ahgittin commented on a diff in the pull request: https://github.com/apache/incubator-brooklyn/pull/987#discussion_r43101977 --- Diff: api/src/main/java/org/apache/brooklyn/api/objs/Configurable.java --- @@ -41,6 +41,11 @@ @Deprecated public T setConf

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-27 Thread ahgittin
Github user ahgittin commented on a diff in the pull request: https://github.com/apache/incubator-brooklyn/pull/987#discussion_r43101561 --- Diff: api/src/main/java/org/apache/brooklyn/api/objs/BrooklynObject.java --- @@ -141,4 +149,11 @@ */ boolean unsub

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-25 Thread neykov
Github user neykov commented on the pull request: https://github.com/apache/incubator-brooklyn/pull/987#issuecomment-150919995 All good! Only minor comments. What I strongly feel should be removed is the `PublicSelfType` and `PrivateSelfType` generic types, unless there's a good te

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-25 Thread neykov
Github user neykov commented on a diff in the pull request: https://github.com/apache/incubator-brooklyn/pull/987#discussion_r42944179 --- Diff: core/src/main/java/org/apache/brooklyn/core/relations/ByObjectBasicRelationSupport.java --- @@ -0,0 +1,103 @@ +/* + * Licensed t

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-25 Thread neykov
Github user neykov commented on a diff in the pull request: https://github.com/apache/incubator-brooklyn/pull/987#discussion_r42942650 --- Diff: core/src/main/java/org/apache/brooklyn/core/objs/AbstractBrooklynObject.java --- @@ -55,8 +57,18 @@ @SetFromFlag(value = "tags")

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-25 Thread neykov
Github user neykov commented on a diff in the pull request: https://github.com/apache/incubator-brooklyn/pull/987#discussion_r42942578 --- Diff: core/src/main/java/org/apache/brooklyn/core/objs/AbstractBrooklynObject.java --- @@ -55,8 +57,18 @@ @SetFromFlag(value = "tags")

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-24 Thread neykov
Github user neykov commented on a diff in the pull request: https://github.com/apache/incubator-brooklyn/pull/987#discussion_r42934310 --- Diff: core/src/main/java/org/apache/brooklyn/core/entity/EntityRelations.java --- @@ -0,0 +1,160 @@ +/* + * Licensed to the Apache Soft

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-24 Thread neykov
Github user neykov commented on a diff in the pull request: https://github.com/apache/incubator-brooklyn/pull/987#discussion_r42934160 --- Diff: api/src/main/java/org/apache/brooklyn/api/objs/BrooklynObject.java --- @@ -141,4 +149,11 @@ */ boolean unsubsc

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-23 Thread neykov
Github user neykov commented on a diff in the pull request: https://github.com/apache/incubator-brooklyn/pull/987#discussion_r42882539 --- Diff: core/src/main/java/org/apache/brooklyn/core/catalog/internal/CatalogItemDo.java --- @@ -65,6 +64,19 @@ public SubscriptionSupportInterna

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-23 Thread neykov
Github user neykov commented on a diff in the pull request: https://github.com/apache/incubator-brooklyn/pull/987#discussion_r42882151 --- Diff: api/src/main/java/org/apache/brooklyn/api/mgmt/rebind/mementos/Memento.java --- @@ -77,7 +79,8 @@ public Collection getTag

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-23 Thread neykov
Github user neykov commented on a diff in the pull request: https://github.com/apache/incubator-brooklyn/pull/987#discussion_r42876869 --- Diff: core/src/main/java/org/apache/brooklyn/core/objs/BrooklynObjectInternal.java --- @@ -31,12 +31,12 @@ import com.google.common.

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-23 Thread neykov
Github user neykov commented on a diff in the pull request: https://github.com/apache/incubator-brooklyn/pull/987#discussion_r42873976 --- Diff: api/src/main/java/org/apache/brooklyn/api/objs/Configurable.java --- @@ -41,6 +41,11 @@ @Deprecated public T setConfig

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-23 Thread neykov
Github user neykov commented on a diff in the pull request: https://github.com/apache/incubator-brooklyn/pull/987#discussion_r42873240 --- Diff: api/src/main/java/org/apache/brooklyn/api/objs/Configurable.java --- @@ -41,6 +41,11 @@ @Deprecated public T setConfig

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-23 Thread neykov
Github user neykov commented on a diff in the pull request: https://github.com/apache/incubator-brooklyn/pull/987#discussion_r42872387 --- Diff: api/src/main/java/org/apache/brooklyn/api/objs/BrooklynObject.java --- @@ -141,4 +149,11 @@ */ boolean unsubsc

[GitHub] incubator-brooklyn pull request: Introduce relationships between b...

2015-10-23 Thread ahgittin
GitHub user ahgittin opened a pull request: https://github.com/apache/incubator-brooklyn/pull/987 Introduce relationships between brooklyn objects adds BrooklynObject.relations() and relationships such as MANAGER_OF and IN_GROUP. includes tests, also convering persistence. a