Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(97)

Issue 12646: Annotation based handler dispatch for REST/RPC protocols

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 7 months ago by louiscryan
Modified:
16 years, 7 months ago
Reviewers:
bobevans, shindig-dev, etnu00
Base URL:
http://svn.apache.org/repos/asf/incubator/shindig/trunk/
Visibility:
Public.

Description

Use annotations to describe the services exported by a protocol handler class and their parameterization. Additional services can be exported by creating Guice bindings. RPC handlers can now support more operations than just the same list that REST supports. Added "system" endpoint to introspect the set of available endpoints, this will be used for the os-lite implementation. Fixed many, many API tests The next phase of this work is to migrate all the basic protocol handling into common so it can be used to implement makeRequest in terms of our standard protocols.

Patch Set 1 #

Total comments: 48

Patch Set 2 : Updates per comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1956 lines, -2029 lines) Patch
java/social-api/src/main/java/org/apache/shindig/social/core/config/SocialApiGuiceModule.java View 1 3 chunks +13 lines, -26 lines 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/ActivityHandler.java View 1 6 chunks +38 lines, -28 lines 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/ApiServlet.java View 1 4 chunks +4 lines, -20 lines 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/AppDataHandler.java View 1 5 chunks +16 lines, -23 lines 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/BaseRequestItem.java View 1 1 chunk +280 lines, -0 lines 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/DataRequestHandler.java View 1 1 chunk +0 lines, -112 lines 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/DataServiceServlet.java View 1 3 chunks +28 lines, -50 lines 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/DefaultHandlerRegistry.java View 1 chunk +308 lines, -0 lines 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/HandlerDispatcher.java View 1 1 chunk +0 lines, -37 lines 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/HandlerPreconditions.java View 1 1 chunk +58 lines, -0 lines 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/HandlerRegistry.java View 1 1 chunk +54 lines, -0 lines 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/JsonRpcServlet.java View 1 5 chunks +14 lines, -13 lines 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/Operation.java View 1 1 chunk +51 lines, -0 lines 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/PersonHandler.java View 1 3 chunks +24 lines, -26 lines 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/RequestItem.java View 1 1 chunk +35 lines, -172 lines 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/RestHandler.java View 1 1 chunk +38 lines, -0 lines 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/RestfulRequestItem.java View 1 1 chunk +0 lines, -248 lines 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/RpcHandler.java View 1 1 chunk +37 lines, -0 lines 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/RpcRequestItem.java View 1 1 chunk +0 lines, -157 lines 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/Service.java View 1 1 chunk +57 lines, -0 lines 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/SystemHandler.java View 1 1 chunk +50 lines, -0 lines 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/sample/service/SampleContainerHandler.java View 1 2 chunks +13 lines, -22 lines 0 comments Download
java/social-api/src/test/java/org/apache/shindig/social/SocialApiTestsGuiceModule.java View 1 2 chunks +16 lines, -1 line 0 comments Download
java/social-api/src/test/java/org/apache/shindig/social/dataservice/integration/AbstractLargeRestfulTests.java View 1 5 chunks +33 lines, -70 lines 0 comments Download
java/social-api/src/test/java/org/apache/shindig/social/opensocial/service/ActivityHandlerTest.java View 1 4 chunks +86 lines, -59 lines 0 comments Download
java/social-api/src/test/java/org/apache/shindig/social/opensocial/service/AppDataHandlerTest.java View 1 6 chunks +81 lines, -88 lines 0 comments Download
java/social-api/src/test/java/org/apache/shindig/social/opensocial/service/BaseRequestItemTest.java View 1 1 chunk +139 lines, -0 lines 0 comments Download
java/social-api/src/test/java/org/apache/shindig/social/opensocial/service/DataServiceServletTest.java View 1 3 chunks +72 lines, -117 lines 0 comments Download
java/social-api/src/test/java/org/apache/shindig/social/opensocial/service/DefaultHandlerRegistryTest.java View 1 chunk +158 lines, -0 lines 0 comments Download
java/social-api/src/test/java/org/apache/shindig/social/opensocial/service/JsonRpcServletTest.java View 1 5 chunks +75 lines, -131 lines 0 comments Download
java/social-api/src/test/java/org/apache/shindig/social/opensocial/service/PersonHandlerTest.java View 1 5 chunks +82 lines, -116 lines 0 comments Download
java/social-api/src/test/java/org/apache/shindig/social/opensocial/service/RestfulRequestItemTest.java View 1 1 chunk +0 lines, -153 lines 0 comments Download
java/social-api/src/test/java/org/apache/shindig/social/opensocial/service/RpcRequestItemTest.java View 1 1 chunk +0 lines, -184 lines 0 comments Download
java/social-api/src/test/java/org/apache/shindig/social/opensocial/service/StandardHandlerDispatcherTest.java View 1 chunk +0 lines, -86 lines 0 comments Download
java/social-api/src/test/java/org/apache/shindig/social/opensocial/service/TestHandler.java View 1 1 chunk +96 lines, -0 lines 0 comments Download
java/social-api/src/test/java/org/apache/shindig/social/opensocial/spi/DataRequestHandlerTest.java View 1 1 chunk +0 lines, -90 lines 0 comments Download

Messages

Total messages: 6
louiscryan
16 years, 7 months ago (2009-01-28 23:10:51 UTC) #1
louiscryan
Use annotations to describe the services exported by a protocol handler class and their parameterization. ...
16 years, 7 months ago (2009-01-28 23:21:20 UTC) #2
etnu00
http://codereview.appspot.com/12646/diff/1/30 File java/social-api/src/main/java/org/apache/shindig/social/core/config/SocialApiGuiceModule.java (right): http://codereview.appspot.com/12646/diff/1/30#newcode24 Line 24: import com.google.inject.name.Names; Your import order is wrong. http://codereview.appspot.com/12646/diff/1/27 ...
16 years, 7 months ago (2009-01-29 03:52:19 UTC) #3
bobevans
LGTM http://codereview.appspot.com/12646/diff/1/15 File java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/BasicHandlerRegistry.java (right): http://codereview.appspot.com/12646/diff/1/15#newcode123 Line 123: if (handler instanceof Class) { Micro-ordering issue: ...
16 years, 7 months ago (2009-01-30 22:17:31 UTC) #4
louiscryan
http://codereview.appspot.com/12646/diff/1/30 File java/social-api/src/main/java/org/apache/shindig/social/core/config/SocialApiGuiceModule.java (right): http://codereview.appspot.com/12646/diff/1/30#newcode24 Line 24: import com.google.inject.name.Names; On 2009/01/29 03:52:19, etnu00 wrote: > ...
16 years, 7 months ago (2009-01-30 23:17:44 UTC) #5
louiscryan
16 years, 7 months ago (2009-01-30 23:19:35 UTC) #6
Updates per comments.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b