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

Issue 1665054: Refactor post gadget rendering logic to protected methods to allow easy customization (Closed)

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

Description

Move the post rendering logic to protected methods for each RenderingResults.Status enum value to allow developers to extend from GadgetRenderingServlet but adding his/her own custom logic to process the rendering results. This will help reduce the amount of code developers need to code to just have additional logic after rendering the gadget.

Patch Set 1 #

Total comments: 1

Patch Set 2 : Added protected methods per RenderingResults enum value #

Patch Set 3 : Change the method names #

Patch Set 4 : Update method names again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -42 lines) Patch
java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/GadgetRenderingServlet.java View 1 2 3 2 chunks +110 lines, -42 lines 0 comments Download

Messages

Total messages: 8
henry.saputra
I am thinking of adding a protected method to move the logic after rendering done ...
15 years, 5 months ago (2010-07-22 23:19:11 UTC) #1
johnfargo
http://codereview.appspot.com/1665054/diff/1/2 File java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/GadgetRenderingServlet.java (right): http://codereview.appspot.com/1665054/diff/1/2#newcode125 java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/GadgetRenderingServlet.java:125: UriStatus urlstatus, GadgetContext context, RenderingResults results) throws IOException { ...
15 years, 5 months ago (2010-07-22 23:28:45 UTC) #2
henry.saputra
I agree its a kind of kitchen sink approach to overridable method. One example I ...
15 years, 5 months ago (2010-07-22 23:39:34 UTC) #3
fargo
That sounds good to me. You can keep this method (discouraging it being overridden unless ...
15 years, 5 months ago (2010-07-22 23:42:16 UTC) #4
henry.saputra
Sounds like a plan, will post the revised version. Thx, - Henry On 2010/07/22 23:42:16, ...
15 years, 5 months ago (2010-07-22 23:45:42 UTC) #5
henry.saputra
Address John's suggestion/concern, I have separated the overrideable/protected methods for each RenderingResults.Status enum value. This ...
15 years, 5 months ago (2010-07-24 00:50:57 UTC) #6
Paul Lindner
lgtm
15 years, 5 months ago (2010-07-24 00:54:18 UTC) #7
johnfargo
15 years, 5 months ago (2010-07-24 00:54:53 UTC) #8
lgtm also

On Fri, Jul 23, 2010 at 5:54 PM, <lindner@inuus.com> wrote:

> lgtm
>
>
> http://codereview.appspot.com/1665054/show
>
Sign in to reply to this message.

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