> Already deployed it :)
I noticed...but we can always apply a little edit here and there if we think
that's merited ;-)
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/124#issuecomment-54546199
Already deployed it :) but will consider adding some more to illustrate the
"create for create" example.
About fonts: I don't like using that much outside code blocks, but I see what
you are saying with regards to consistency. Hmm.
---
Reply to this email directly or view it on GitHub:
https://g
Thanks, @zack-shoylev! Great to see more posts on the blog. Just a bunch of
minor comments, many of them around code font (or not) for things like classes.
I have no strong preference either way, but it would be good to be consistent
with other blog posts...
---
Reply to this email directly or
> +In this case, it was easy to add support for this call by using a [map
> binder](https://github.com/jclouds/jclouds/blob/master/apis/openstack-trove/src/main/java/org/jclouds/openstack/trove/v1/binders/BindCreateUserToJson.java).
> +
> +However, some APIs send or receive significantly more comp
> +Some [simpler
> classes](https://github.com/jclouds/jclouds-labs-openstack/blob/master/openstack-neutron/src/main/java/org/jclouds/openstack/neutron/v2/domain/AddressPair.java)
> implement the regular fluent builder pattern.
> +
> +In [other
> cases](https://github.com/jclouds/jclouds-labs-o
> +
> +We want to
> +
> +1. Ensure object immutability.
> +2. Utilize the fluent builder pattern.
> +3. Ensure that "create" objects can only be used for create; update for
> update; and listed resources cannot be directly sent back to the service.
> +4. Reuse code and keep domain classes
> [DRY]
> +
> +In addition to fixing these issues, jclouds wants to provide developers with
> some compiler checks and other syntactic sugar (fluent builders), while also
> supporting different updating, creating, or listing validation strategies.
> +
> +We want to
> +
> +1. Ensure object immutability.
>
> +1. Heavy use of map-binders and parsers to transform JSON. Map-binders use
> annotation-selected classes to map method data (such as the data in the
> create-user call above) to the JSON required by the service. The
> [parsers](https://github.com/jclouds/jclouds-labs-openstack/blob/master/op
> +Current implementations have the following two issues :
> +
> +1. Heavy use of map-binders and parsers to transform JSON. Map-binders use
> annotation-selected classes to map method data (such as the data in the
> create-user call above) to the JSON required by the service. The
> [parsers](h
> +
> +To parse the response, jclouds uses [domain
> classes](https://github.com/jclouds/jclouds/blob/master/apis/openstack-trove/src/main/java/org/jclouds/openstack/trove/v1/domain/User.java)
> to represent the JSON data returned by the service. The array of "users" is
> unwrapped into individu
> +}
> +]
> +}
> +{% endhighlight %}
> +
> +To parse the response, jclouds uses [domain
> classes](https://github.com/jclouds/jclouds/blob/master/apis/openstack-trove/src/main/java/org/jclouds/openstack/trove/v1/domain/User.java)
> to represent the JSON data returned by the service. T
> +{
> +"databases": [
> +{
> +"name": "sampledb"
> +}
> +],
> +"host": "%",
> +"name": "demouser"
> +}
> +]
> +}
> +{% endhighlight %}
> +
> +To parse the response, jclouds uses
> +"host": "%"
> +},
> +{
> +"databases": [
> +{
> +"name": "sampledb"
> +}
> +],
> +"host": "%",
> +"name": "demouser"
> +}
> +]
> +}
> +{% endhighlight %}
>
Closed #124.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/124#event-161253336
Website deployed. It seems to not be completely broken so far.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/124#issuecomment-54493351
merged
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/124#issuecomment-54491307
Merge and publish!
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/124#issuecomment-54484345
Alright, problems with the PR build script seem fixed now. This also seems good
to merge. Should I merge it? Is there anything else that needs to be done? The
front page has a link to the blog I think.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site
Go to
http://306ae818722ae6b78b92-2e69301a260e5804fbad8c2752c99931.r57.cf5.rackcdn.com/
to review your changes.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/124#issuecomment-54458152
[jclouds-site-pull-requests
#395](https://jclouds.ci.cloudbees.com/job/jclouds-site-pull-requests/395/)
SUCCESS
This pull request looks good
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/124#issuecomment-54457891
Reopened #124.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/124#event-161132059
Closed #124.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/124#event-161132054
to review your changes.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/124#issuecomment-54454813
[jclouds-site-pull-requests
#394](https://jclouds.ci.cloudbees.com/job/jclouds-site-pull-requests/394/)
SUCCESS
This pull request looks good
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/124#issuecomment-54454709
Reopened #124.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/124#event-161122494
to review your changes.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/124#issuecomment-54454032
[jclouds-site-pull-requests
#393](https://jclouds.ci.cloudbees.com/job/jclouds-site-pull-requests/393/)
SUCCESS
This pull request looks good
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/124#issuecomment-54453827
> +"name": "sampledb"
> +}
> +],
> +"host": "%",
> +"name": "demouser"
> +}
> +]
> +}
> +{% endhighlight %}
> +
> +To parse the response, jclouds uses [domain
> classes](https://github.com/jclouds/jclouds/blob/mast
> @@ -0,0 +1,119 @@
> +---
> +author: Zack Shoylev
> +comments: true
> +date: 2014-09-03 23:00:00+00:00
> +layout: post
> +slug: better-builders-with-jclouds
> +title: Better Builders with jclouds!
> +---
> +
> +# Better Builders with jclouds
> +
> +If you are a new [jclouds](https://developer.rack
> @@ -0,0 +1,119 @@
> +---
> +author: Zack Shoylev
> +comments: true
> +date: 2014-09-03 23:00:00+00:00
> +layout: post
> +slug: better-builders-with-jclouds
> +title: Better Builders with jclouds!
> +---
> +
> +# Better Builders with jclouds
> +
> +If you are a new [jclouds](https://developer.rack
> @@ -0,0 +1,119 @@
> +---
> +author: Zack Shoylev
> +comments: true
> +date: 2014-09-03 23:00:00+00:00
> +layout: post
> +slug: better-builders-with-jclouds
> +title: Better Builders with jclouds!
> +---
> +
> +# Better Builders with jclouds
No need to repeat the title here.
---
Reply to this em
Go to
http://89d96d9cf66576b30bb2-b935cd5295eaeed0a1e6ee8fc0c31ef7.r95.cf5.rackcdn.com/
to review your changes.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/124#issuecomment-54349579
[jclouds-site-pull-requests
#392](https://jclouds.ci.cloudbees.com/job/jclouds-site-pull-requests/392/)
SUCCESS
This pull request looks good
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/124#issuecomment-54349279
Reopened #124.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/124#event-160761654
to review your changes.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/124#issuecomment-54346972
[jclouds-site-pull-requests
#391](https://jclouds.ci.cloudbees.com/job/jclouds-site-pull-requests/391/)
SUCCESS
This pull request looks good
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/124#issuecomment-54346770
Closed #124.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/124#event-160752544
Reopened #124.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/124#event-160752549
[jclouds-site-pull-requests
#390](https://jclouds.ci.cloudbees.com/job/jclouds-site-pull-requests/390/)
SUCCESS
This pull request looks good
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/124#issuecomment-54330214
to review your changes.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/124#issuecomment-54330496
You can merge this Pull Request by running:
git pull https://github.com/rackerlabs/jclouds-site jclouds-domain-classes
Or you can view, comment on it, or merge it online at:
https://github.com/jclouds/jclouds-site/pull/124
-- Commit Summary --
* Domain classes, better builders blog post
41 matches
Mail list logo