Return-Path: X-Original-To: apmail-shindig-issues-archive@www.apache.org Delivered-To: apmail-shindig-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D98B789F8 for ; Tue, 30 Aug 2011 18:13:05 +0000 (UTC) Received: (qmail 61093 invoked by uid 500); 30 Aug 2011 18:13:05 -0000 Delivered-To: apmail-shindig-issues-archive@shindig.apache.org Received: (qmail 60856 invoked by uid 500); 30 Aug 2011 18:13:05 -0000 Mailing-List: contact issues-help@shindig.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@shindig.apache.org Delivered-To: mailing list issues@shindig.apache.org Received: (qmail 60848 invoked by uid 99); 30 Aug 2011 18:13:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Aug 2011 18:13:04 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Aug 2011 18:13:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 27964D7753 for ; Tue, 30 Aug 2011 18:12:40 +0000 (UTC) Date: Tue, 30 Aug 2011 18:12:40 +0000 (UTC) From: "jiraposter@reviews.apache.org (JIRA)" To: issues@shindig.apache.org Message-ID: <1658133248.8642.1314727960158.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <721116637.4297.1314643838000.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (SHINDIG-1604) Inject Authority object instead of injecting the BasicAuthorityProvider itself MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SHINDIG-1604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13093962#comment-13093962 ] jiraposter@reviews.apache.org commented on SHINDIG-1604: -------------------------------------------------------- ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/1676/ ----------------------------------------------------------- (Updated 2011-08-30 18:11:25.582423) Review request for shindig and li xu. Changes ------- Change test method from Provider to Authority. Summary ------- Currently the code inject BasicAuthorityProvider to allow Shindig Java to be deploy in non root environment. However this is not necessary since the BasicAuthority is bind to Authority in DefaultGuiceModule: bind(Authority.class).toProvider(BasicAuthorityProvider.class); we just need to inject Authority instance itself because we dont really need multiple instances of Authority which is the main purpose of the Provider injection. Implementation of Authority such as BasicAuthority has to be immutable and thread safe. This addresses bug SHINDIG-1604. https://issues.apache.org/jira/browse/SHINDIG-1604 Diffs (updated) ----- trunk/content/samplecontainer/examples/commoncontainer/assembler.js 1162967 trunk/java/common/src/main/java/org/apache/shindig/common/servlet/BasicAuthority.java 1162967 trunk/java/common/src/main/java/org/apache/shindig/common/servlet/BasicAuthorityProvider.java 1162967 trunk/java/common/src/test/java/org/apache/shindig/common/servlet/BasicAuthorityProviderTest.java 1162967 trunk/java/common/src/test/java/org/apache/shindig/common/servlet/BasicAuthorityTest.java PRE-CREATION trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/DefaultGuiceModule.java 1162967 trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/oauth/BasicOAuthStore.java 1162967 trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/oauth/OAuthModule.java 1162967 trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/render/DefaultServiceFetcher.java 1162967 trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/uri/DefaultConcatUriManager.java 1162967 trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/uri/DefaultIframeUriManager.java 1162967 trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/uri/DefaultJsUriManager.java 1162967 trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/uri/DefaultProxyUriManager.java 1162967 trunk/java/social-api/src/main/java/org/apache/shindig/social/sample/spi/JsonDbOpensocialService.java 1162967 Diff: https://reviews.apache.org/r/1676/diff Testing ------- Updated the JUnit test case to reflect the change Thanks, Henry > Inject Authority object instead of injecting the BasicAuthorityProvider itself > ------------------------------------------------------------------------------ > > Key: SHINDIG-1604 > URL: https://issues.apache.org/jira/browse/SHINDIG-1604 > Project: Shindig > Issue Type: Improvement > Components: Java > Reporter: Henry Saputra > Assignee: Henry Saputra > Priority: Minor > Attachments: SHINDIG-1604-v2.patch, SHINDIG-1604-v3.patch, SHINDIG-1604.patch > > > Currently the code inject BasicAuthorityProvider to allow Shindig Java to be deploy in non root environment. > However this is not necessary since the BasicAuthority is bind to Authority in DefaultGuiceModule: > bind(Authority.class).toProvider(BasicAuthorityProvider.class); > we just need to inject Authority instance itself because we dont really need multiple instances of Authority which is the main purpose of the Provider injection. > Implementation of Authority such as BasicAuthority has to be immutable and thread safe. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira