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

Issue 1925042: Step 2 in GadgetHandler restructure

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 7 months ago by zhoresh
Modified:
15 years, 6 months ago
Reviewers:
johnfargo, dev-remailer, jtarrio
Base URL:
http://svn.apache.org/repos/asf/shindig/trunk
Visibility:
Public.

Description

The change break GadgetHandler class to two. One class to process the data nd one to handle provide the json api. The goal is to be able to export the same interface in other means then json rpc. The change also extract the input parameters into the Api class, Note that the code take advantage of the BeanDelegator also for the input parameters, but there is no good verification in this case (because not all is needed in this case).

Patch Set 1 #

Patch Set 2 : Update Token class passing and rename @Unflitered annotation #

Total comments: 20

Patch Set 3 : Updated according to John comments #

Total comments: 3

Messages

Total messages: 9
zhoresh
15 years, 7 months ago (2010-08-05 23:01:42 UTC) #1
zhoresh
Update Token class passing and rename @Unflitered annotation
15 years, 7 months ago (2010-08-10 18:27:36 UTC) #2
johnfargo
http://codereview.appspot.com/1925042/diff/7001/8005 File java/common/src/main/java/org/apache/shindig/protocol/conversion/BeanDelegator.java (right): http://codereview.appspot.com/1925042/diff/7001/8005#newcode121 java/common/src/main/java/org/apache/shindig/protocol/conversion/BeanDelegator.java:121: public Object createDelegator(Object source, Class<?> apiInterface) { For better ...
15 years, 7 months ago (2010-08-12 08:13:49 UTC) #3
zhoresh
Updated according to John comments
15 years, 7 months ago (2010-08-13 00:16:52 UTC) #4
zhoresh
John thanks for the review. Great idea to add the field map to the delegator! ...
15 years, 7 months ago (2010-08-13 00:19:06 UTC) #5
zhoresh
+jtarrio Jacobo, please help in the review now that John is off for a while ...
15 years, 6 months ago (2010-08-20 18:06:03 UTC) #6
jtarrio
lgtm
15 years, 6 months ago (2010-08-20 22:18:24 UTC) #7
johnfargo
On Thu, Aug 12, 2010 at 5:19 PM, <zhoresh@gmail.com> wrote: > John thanks for the ...
15 years, 6 months ago (2010-08-21 17:44:39 UTC) #8
johnfargo
15 years, 6 months ago (2010-08-21 17:45:13 UTC) #9
LGTM!

Just in time for vacation. A few tiny little cleanup notes, nothing of
consequence.

http://codereview.appspot.com/1925042/diff/23001/24006
File
java/common/src/main/java/org/apache/shindig/protocol/conversion/BeanDelegator.java
(right):

http://codereview.appspot.com/1925042/diff/23001/24006#newcode52
java/common/src/main/java/org/apache/shindig/protocol/conversion/BeanDelegator.java:52:
public static final String NULL = "NULL";
micronit: suggest "<NULL sentinel>" in case it shows up in debugging here and
there

http://codereview.appspot.com/1925042/diff/23001/24006#newcode67
java/common/src/main/java/org/apache/shindig/protocol/conversion/BeanDelegator.java:67:
ImmutableMap.<Enum<?>, Enum<?>>of());
nanonit: 1 additional space indent

http://codereview.appspot.com/1925042/diff/23001/24006#newcode162
java/common/src/main/java/org/apache/shindig/protocol/conversion/BeanDelegator.java:162:
Preconditions.checkNotNull(extraFields);
could just support null and set extraFields to EXTRA_FIELDS
Sign in to reply to this message.

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