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

Issue 2350042: Refactor the container configuration

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 3 months ago by jtarrio
Modified:
15 years, 3 months ago
Reviewers:
zhoresh, shindig.remailer, anupama.dutta, gagan.goku
Base URL:
http://svn.apache.org/repos/asf/shindig/trunk/
Visibility:
Public.

Description

Separate the code that holds and evaluates the container configurations from the code that reads them from disk. Also provide for the possibility to change the container configuration after the fact. Add a configuration observer so other classes that hold data that depend on containers can update their state.

Patch Set 1 #

Patch Set 2 : Hopefully fixed patch #

Patch Set 3 : I had missed a couple of classes I had to turn into observers too #

Total comments: 14

Patch Set 4 : Patch that addresses the issues in Ziv's comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1958 lines, -1072 lines) Patch
java/common/src/main/java/org/apache/shindig/auth/BlobCrypterSecurityTokenCodec.java View 2 3 chunks +44 lines, -10 lines 0 comments Download
java/common/src/main/java/org/apache/shindig/config/AbstractContainerConfig.java View 2 1 chunk +0 lines, -82 lines 0 comments Download
java/common/src/main/java/org/apache/shindig/config/BasicContainerConfig.java View 1 2 3 1 chunk +369 lines, -0 lines 0 comments Download
java/common/src/main/java/org/apache/shindig/config/ContainerConfig.java View 1 2 3 3 chunks +86 lines, -3 lines 0 comments Download
java/common/src/main/java/org/apache/shindig/config/ContainerConfigELResolver.java View 2 1 chunk +2 lines, -2 lines 0 comments Download
java/common/src/main/java/org/apache/shindig/config/ExpressionContainerConfig.java View 1 2 3 1 chunk +177 lines, -0 lines 0 comments Download
java/common/src/main/java/org/apache/shindig/config/JsonContainerConfig.java View 2 1 chunk +0 lines, -430 lines 0 comments Download
java/common/src/main/java/org/apache/shindig/config/JsonContainerConfigLoader.java View 1 1 chunk +289 lines, -0 lines 0 comments Download
java/common/src/main/java/org/apache/shindig/config/JsonContainerConfigProvider.java View 1 chunk +50 lines, -0 lines 0 comments Download
java/common/src/test/java/org/apache/shindig/auth/BlobCrypterSecurityTokenCodecTest.java View 2 9 chunks +63 lines, -73 lines 0 comments Download
java/common/src/test/java/org/apache/shindig/auth/DefaultSecurityTokenCodecTest.java View 2 3 chunks +5 lines, -6 lines 0 comments Download
java/common/src/test/java/org/apache/shindig/config/BasicContainerConfigTest.java View 1 2 3 1 chunk +242 lines, -0 lines 0 comments Download
java/common/src/test/java/org/apache/shindig/config/ExpressionContainerConfigTest.java View 1 chunk +70 lines, -0 lines 0 comments Download
java/common/src/test/java/org/apache/shindig/config/JsonContainerConfigLoaderTest.java View 1 1 chunk +257 lines, -0 lines 0 comments Download
java/common/src/test/java/org/apache/shindig/config/JsonContainerConfigTest.java View 2 1 chunk +0 lines, -249 lines 0 comments Download
java/gadgets/src/main/java/org/apache/shindig/gadgets/HashLockedDomainService.java View 3 chunks +22 lines, -11 lines 0 comments Download
java/gadgets/src/main/java/org/apache/shindig/gadgets/uri/DefaultAccelUriManager.java View 2 chunks +11 lines, -3 lines 0 comments Download
java/gadgets/src/main/java/org/apache/shindig/gadgets/uri/DefaultIframeUriManager.java View 4 chunks +14 lines, -9 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/HashLockedDomainServiceTest.java View 3 chunks +35 lines, -0 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/parse/caja/CajaCssSanitizerTest.java View 2 2 chunks +21 lines, -32 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/process/ProcessorTest.java View 2 2 chunks +10 lines, -6 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/render/DefaultServiceFetcherTest.java View 2 3 chunks +17 lines, -13 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/render/RendererTest.java View 2 2 chunks +3 lines, -3 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/render/RenderingGadgetRewriterTest.java View 2 3 chunks +4 lines, -5 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/ConcatVisitorTest.java View 2 1 chunk +1 line, -1 line 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/ContentTypeCharsetRemoverRewriterTest.java View 2 1 chunk +2 lines, -1 line 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/CssResponseRewriterTest.java View 2 4 chunks +19 lines, -30 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/DomWalkerTest.java View 2 1 chunk +1 line, -1 line 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/DomWalkerTestBase.java View 2 1 chunk +1 line, -1 line 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/StyleTagExtractorVisitorTest.java View 2 1 chunk +2 lines, -1 line 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/StyleTagProxyEmbeddedUrlsVisitorTest.java View 2 4 chunks +9 lines, -31 lines 2 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/TemplateRewriterTest.java View 2 6 chunks +8 lines, -9 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/servlet/HtmlAccelServletTest.java View 2 2 chunks +3 lines, -3 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/uri/DefaultAccelUriManagerTest.java View 1 2 3 chunks +39 lines, -24 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/uri/DefaultIframeUriManagerTest.java View 4 chunks +40 lines, -4 lines 0 comments Download
java/social-api/src/test/java/org/apache/shindig/social/SocialApiTestsGuiceModule.java View 2 2 chunks +2 lines, -2 lines 0 comments Download
java/social-api/src/test/java/org/apache/shindig/social/opensocial/service/ActivityHandlerTest.java View 2 2 chunks +10 lines, -6 lines 0 comments Download
java/social-api/src/test/java/org/apache/shindig/social/opensocial/service/AlbumHandlerTest.java View 2 3 chunks +10 lines, -8 lines 0 comments Download
java/social-api/src/test/java/org/apache/shindig/social/opensocial/service/MediaItemHandlerTest.java View 2 2 chunks +10 lines, -7 lines 0 comments Download
java/social-api/src/test/java/org/apache/shindig/social/opensocial/service/PersonHandlerTest.java View 2 2 chunks +10 lines, -6 lines 0 comments Download

Messages

Total messages: 12
jtarrio
15 years, 3 months ago (2010-10-07 00:24:29 UTC) #1
jtarrio
The patch is broken -- I'll reupload it shortly.
15 years, 3 months ago (2010-10-07 00:26:09 UTC) #2
jtarrio
Hopefully fixed patch
15 years, 3 months ago (2010-10-07 00:44:43 UTC) #3
jtarrio
I had missed a couple of classes I had to turn into observers too
15 years, 3 months ago (2010-10-08 00:14:07 UTC) #4
zhoresh
Looks good, here are some preliminary comments, I am still looking http://codereview.appspot.com/2350042/diff/14001/java/common/src/main/java/org/apache/shindig/config/BasicContainerConfig.java File java/common/src/main/java/org/apache/shindig/config/BasicContainerConfig.java (right): ...
15 years, 3 months ago (2010-10-08 19:58:35 UTC) #5
jtarrio
http://codereview.appspot.com/2350042/diff/14001/java/common/src/main/java/org/apache/shindig/config/BasicContainerConfig.java File java/common/src/main/java/org/apache/shindig/config/BasicContainerConfig.java (right): http://codereview.appspot.com/2350042/diff/14001/java/common/src/main/java/org/apache/shindig/config/BasicContainerConfig.java#newcode62 java/common/src/main/java/org/apache/shindig/config/BasicContainerConfig.java:62: public final int getInt(String container, String property) { On ...
15 years, 3 months ago (2010-10-09 01:40:41 UTC) #6
jtarrio
Patch that addresses the issues in Ziv's comments
15 years, 3 months ago (2010-10-09 01:41:23 UTC) #7
gagan.goku
+ cool-shindig-committers On Sat, Oct 9, 2010 at 1:28 AM, <zhoresh@gmail.com> wrote: > Looks good, ...
15 years, 3 months ago (2010-10-09 01:43:20 UTC) #8
anupama.dutta
http://codereview.appspot.com/2350042/diff/36001/java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/StyleTagProxyEmbeddedUrlsVisitorTest.java File java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/StyleTagProxyEmbeddedUrlsVisitorTest.java (right): http://codereview.appspot.com/2350042/diff/36001/java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/StyleTagProxyEmbeddedUrlsVisitorTest.java#newcode73 java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/StyleTagProxyEmbeddedUrlsVisitorTest.java:73: config.newTransaction().addContainer(MOCK_CONTAINER_CONFIG).commit(); Since this test was added to ensure that ...
15 years, 3 months ago (2010-10-11 10:26:34 UTC) #9
gagan.goku
Hi Jacobo Since this is a big change, it would be nice if you could ...
15 years, 3 months ago (2010-10-11 12:34:43 UTC) #10
jtarrio
Hi, the motivation of the patch is to have the container configuration come from several ...
15 years, 3 months ago (2010-10-11 16:56:49 UTC) #11
jtarrio
15 years, 3 months ago (2010-10-11 17:01:56 UTC) #12
http://codereview.appspot.com/2350042/diff/36001/java/gadgets/src/test/java/o...
File
java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/StyleTagProxyEmbeddedUrlsVisitorTest.java
(right):

http://codereview.appspot.com/2350042/diff/36001/java/gadgets/src/test/java/o...
java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/StyleTagProxyEmbeddedUrlsVisitorTest.java:73:
config.newTransaction().addContainer(MOCK_CONTAINER_CONFIG).commit();
On 2010/10/11 10:26:34, anupama.dutta wrote:
> Since this test was added to ensure that the container is taken into account
> correctly (see http://codereview.appspot.com/2004042), shouldn't we add the
> DEFAULT_CONTAINER_CONFIG as well?

It is already there, in the configuration that is retrieved via
injector.getInstance.
Sign in to reply to this message.

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