mirror of https://github.com/apache/jclouds.git
2b0eb5025a
New interface annotation parsing: 1. HttpRequestOptions can now be a vararg option. While we only support one element at the moment, it can cut down on repetition. ex. public List<Stuff> listStuff(); public List<Stuff> listStuff(ListOptions options); becomes public List<Stuff> listStuff(ListOptions ... options); This is especially important when attempting to limit the copy-pasting of annotations which are the same between slight deviations 2. HttpRequestOptions can now create a path suffix. Again, this is to cut down on redundancy in the api: ex. public List<Stuff> listStuff(); public List<Stuff> listStuff(ListOptions options); @Path(/details) public List<Stuff> listStuffDetails(); @Path(/details) public List<Stuff> listStuffDetails(ListOptions options); becomes public List<Stuff> listStuff(ListOptions ... options); where ListOptions contains withDetails option. example usage: List<Server> servers = connection.listServers(withDetails()); git-svn-id: http://jclouds.googlecode.com/svn/trunk@1652 3d8758e0-26b5-11de-8745-db77d3ebf521 |
||
---|---|---|
.. | ||
src | ||
pom.xml |