DescriptionThis 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 #
MessagesTotal messages: 6
|