Skip to content

Conversation

@neykov
Copy link
Member

@neykov neykov commented Dec 13, 2016

Allows us to call custom DSL methods on any object we are interested in without the object knowing about DSL. Also lets us do chaining.
For example:

attributeWhenReady("targetSensor").attributeWhenReady("mySensor")
attributeWhenReady("anyBrooklynObject").config("myConfig")

Builds on #482

Lets us call methods on DslCallable methods and at the same time resolve the object if it's the last of the chain.
Fixes tests which expect the DSL evaluated objects to be in the correct package. Adds tests to verify that objects outside of the package scope are inaccessible to DSL.
Gives more control over what method gets executed.
Allows us to call custom DSL methods on any object we are interested in without the object knowing about DSL.
@ahgittin
Copy link
Contributor

awesome. disregard my point on #482 about C-style non-OOP "method" calls.

i think remove DslCallable in favour of @DslAccessible, then merge that. (can build on this on #482 so it merges all...)

@neykov neykov mentioned this pull request Dec 13, 2016
@neykov
Copy link
Member Author

neykov commented Dec 13, 2016

Included the changes in #482 - too hard to juggle two PRs.

@neykov neykov closed this Dec 13, 2016
@neykov neykov deleted the dsl-mixins branch December 13, 2016 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants