Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 39000 invoked from network); 21 Mar 2011 09:45:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Mar 2011 09:45:44 -0000 Received: (qmail 60422 invoked by uid 500); 21 Mar 2011 09:45:44 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 60346 invoked by uid 500); 21 Mar 2011 09:45:43 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 60339 invoked by uid 99); 21 Mar 2011 09:45:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Mar 2011 09:45:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Mon, 21 Mar 2011 09:45:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id AAAFB40122D for ; Mon, 21 Mar 2011 09:45:06 +0000 (UTC) Date: Mon, 21 Mar 2011 09:45:06 +0000 (UTC) From: "Neil Griffin (JIRA)" To: dev@myfaces.apache.org Message-ID: <470550370.257.1300700706695.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1702552389.13512.1300531418161.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (PORTLETBRIDGE-199) Proposal for 3.0 API: BridgeUtil.getClassPathResourceAsString(String resourcePath) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PORTLETBRIDGE-199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13009077#comment-13009077 ] Neil Griffin commented on PORTLETBRIDGE-199: -------------------------------------------- The functionality of this method is currently provided in GenericFacesPortlet.java: private String getFromServicesPath(PortletContext context, String resourceName) { ... } The reason why I suggested moving this to BridgeUtil, was because at one time in the development of the PortletFaces Bridge, I needed this functionality both in GenericFacesPortlet (to discover the bridge impl) and in another place to discover the BridgeConfig impl. Having the method in BridgeUtil provided an opportunity to reuse code. However, I just realized that, since I'm using BridgeFactoryFinder (PORTLETBRIDGE-189), I don't need it to be in BridgeUtil anymore. If we perform bridge discovery with a Factory mechanism as proposed in PORTLETBRIDGE-195, then this private method would no longer be required in GenericFacesPortlet. Instead, it would be required in BridgeFactoryFinder, so that it could find an implementation of the finder in the classpath. So I would be willing to retract this proposal if we do the BridgeFactoryFinder. > Proposal for 3.0 API: BridgeUtil.getClassPathResourceAsString(String resourcePath) > ---------------------------------------------------------------------------------- > > Key: PORTLETBRIDGE-199 > URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-199 > Project: MyFaces Portlet Bridge > Issue Type: New Feature > Components: General > Affects Versions: 3.0.0 > Reporter: Neil Griffin > Assignee: Michael Freedman > > Proposal is to introduce a utility method that can load the contents of classpath resources (like META-INF/services/filename) into a String. > This will help the API with discovery of the implementation of BridgeFactoryFinder specified in PORTLETBRIDGE-189 > See the following class for more details: > http://svn.portletfaces.org/svn/portletfaces/bridge/portletfaces-bridge-api/trunk/src/main/java/org/portletfaces/bridge/BridgeUtil.java -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira