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

Issue 1688043: Enhancements to org.apache.shindig.gadgets.AbstractSpecFactory$Query

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

Description

This patch makes the following enhancements to org.apache.shindig.gadgets.AbstractSpecFactory$Query: 1. Changes the visibility of all existing fields from private to protected, for easier subclassing. 2. Adds a field of type GadgetContext, along with corresponding setter and getter methods. The latter would make it possible to embed the GadgetContext passed to GadgetSpecFactory#getGadgetSpec into the Query object that is generated as part of this call and passed to AbstractSpecFactory#getSpec(Query). As a result of this, AbstractSpecFactory#parse(String, Query) would now be able to retrieve the GadgetContext from the Query argument, and from the GadgetContext, things like the Locale.

Patch Set 1 #

Patch Set 2 : Another version of the patch that adds Query setter and getter methods for Locale and SecurityToken #

Patch Set 3 : Renamed LocaleQuery#locale to LocaleQuery#localeSpec so that it does not mask new Query#locale #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -7 lines) Patch
java/gadgets/src/main/java/org/apache/shindig/gadgets/AbstractSpecFactory.java View 1 5 chunks +26 lines, -4 lines 0 comments Download
java/gadgets/src/main/java/org/apache/shindig/gadgets/DefaultMessageBundleFactory.java View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 6
janluehe
13 years, 10 months ago (2010-06-15 19:04:29 UTC) #1
janluehe
I realize that adding getter and setter methods for GadgetContext to Query will introduce some ...
13 years, 10 months ago (2010-06-23 19:22:23 UTC) #2
janluehe
Another version of the patch that adds Query setter and getter methods for Locale and ...
13 years, 10 months ago (2010-06-23 19:24:18 UTC) #3
janluehe
Just to clarify: We currently extend Query by adding Locale and SecurityToken fields to it, ...
13 years, 10 months ago (2010-06-23 19:41:15 UTC) #4
janluehe
Renamed LocaleQuery#locale to LocaleQuery#localeSpec so that it does not mask new Query#locale
13 years, 10 months ago (2010-06-24 01:28:20 UTC) #5
Paul Lindner
13 years, 10 months ago (2010-06-24 19:50:01 UTC) #6
Something odd is going on here..  It appears that fetches are cached by their
specUri however the rewrite and fetch use params from Query to vary their
output...
Sign in to reply to this message.

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