commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jakarta-commons Wiki] Update of "ResourcesUserGuideImplementations" by NiallPemberton
Date Mon, 28 Nov 2005 17:09:13 GMT
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


Mime
View raw message