Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 18413 invoked from network); 28 Nov 2005 17:09:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Nov 2005 17:09:38 -0000 Received: (qmail 64182 invoked by uid 500); 28 Nov 2005 17:09:35 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 64124 invoked by uid 500); 28 Nov 2005 17:09:34 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 64113 invoked by uid 99); 28 Nov 2005 17:09:34 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Nov 2005 09:09:34 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 1770AC9 for ; Mon, 28 Nov 2005 18:09:13 +0100 (CET) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: commons-dev@jakarta.apache.org Date: Mon, 28 Nov 2005 17:09:13 -0000 Message-ID: <20051128170913.28508.60436@ajax.apache.org> Subject: [Jakarta-commons Wiki] Update of "ResourcesUserGuideImplementations" by NiallPemberton X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Dear Wiki user, You have subscribed to a wiki page or wiki category on "Jakarta-commons Wiki" for change notification. The following page has been changed by NiallPemberton: http://wiki.apache.org/jakarta-commons/ResourcesUserGuideImplementations ------------------------------------------------------------------------------ - || [wiki:ResourcesUserGuide Contents] || [wiki:ResourcesUserGuideIntro Getting Started] || [wiki:ResourcesUserGuideMessages Messages] || [wiki:ResourcesUserGuideImplementations Standard] || [wiki:ResourcesUserGuideCreating Creating] || + || [http://jakarta.apache.org/commons/resources/ Home] || [wiki:Resources Wiki] || [wiki:ResourcesUserGuide Guide] || [wiki:ResourcesUserGuideIntro Getting Started] || [wiki:ResourcesUserGuideMessages Messages] || [wiki:ResourcesUserGuideImplementations Standard] || [wiki:ResourcesUserGuideCreating Creating] || [http://jakarta.apache.org/commons/resources/apidocs/ API] || [http://jakarta.apache.org/commons/resources/xref/ XREF] || ---- = 3. Standard Resources / ResourcesFactory Implementations = @@ -51, +51 @@ ResourcesFactory factory = new PropertyResourcesFactory(); // Create the Resources - Resources resources = factory.createResources("Bar", "file:c:/myapp/foo/Bar"); + Resources resources = factory.getResources("Bar", "file:c:/myapp/foo/Bar"); // Retrieve an i18n String value String msg = resources.getString("some.key", locale, null); @@ -94, +94 @@ ResourcesFactory factory = new XMLResourcesFactory(); // Create the Resources - Resources resources = factory.createResources("Bar", "file:c:myapp/foo/Bar"); + Resources resources = factory.getResources("Bar", "file:c:myapp/foo/Bar"); // Retrieve an i18n String value String msg = resources.getString("some.key", locale, null); @@ -133, +133 @@ ResourcesFactory factory = new JDBCResourcesFactory(); // Create the Resources - Resources resources = factory.createResources("Bar", "file:c:myapp/foo/Bar"); + Resources resources = factory.getResources("Bar", "file:c:myapp/foo/Bar"); // Retrieve an i18n String value String msg = resources.getString("some.key", locale, null); @@ -152, +152 @@ factory.setServletContext(servletContext); // Create the Resources - Resources resources = factory.createResources("Bar", "/org/apache/struts/Bar"); + Resources resources = factory.getResources("Bar", "/org/apache/struts/Bar"); // Retrieve an i18n String value String msg = resources.getString("some.key", locale, null); @@ -171, +171 @@ factory.setServletContext(servletContext); // Create the Resources - Resources resources = factory.createResources("Bar", "/org/apache/struts/Bar"); + Resources resources = factory.getResources("Bar", "/org/apache/struts/Bar"); // Retrieve an i18n String value String msg = resources.getString("some.key", locale, null); @@ -190, +190 @@ ResourcesFactory factory = new ResourceBundleResourcesFactory(); // Create the Resources - Resources resources = factory.createResources("Bar", "BarResources"); + Resources resources = factory.getResources("Bar", "BarResources"); // Retrieve an i18n String value String msg = resources.getString("some.key", locale, null); @@ -201, +201 @@ ---- - || [wiki:ResourcesUserGuide Contents] || [wiki:ResourcesUserGuideIntro Getting Started] || [wiki:ResourcesUserGuideMessages Messages] || [wiki:ResourcesUserGuideImplementations Standard] || [wiki:ResourcesUserGuideCreating Creating] || + || [http://jakarta.apache.org/commons/resources/ Home] || [wiki:Resources Wiki] || [wiki:ResourcesUserGuide Guide] || [wiki:ResourcesUserGuideIntro Getting Started] || [wiki:ResourcesUserGuideMessages Messages] || [wiki:ResourcesUserGuideImplementations Standard] || [wiki:ResourcesUserGuideCreating Creating] || [http://jakarta.apache.org/commons/resources/apidocs/ API] || [http://jakarta.apache.org/commons/resources/xref/ XREF] || --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org