You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@turbine.apache.org by se...@apache.org on 2007/06/27 16:04:17 UTC

svn commit: r551164 - in /turbine/core/branches/TURBINE_2_3_BRANCH: src/java/org/apache/turbine/services/localization/LocalizationTool.java xdocs/changes.xml

Author: seade
Date: Wed Jun 27 07:04:14 2007
New Revision: 551164

URL: http://svn.apache.org/viewvc?view=rev&rev=551164
Log:
Don't declare init() as final - it is useful to override it.

Modified:
    turbine/core/branches/TURBINE_2_3_BRANCH/src/java/org/apache/turbine/services/localization/LocalizationTool.java
    turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/changes.xml

Modified: turbine/core/branches/TURBINE_2_3_BRANCH/src/java/org/apache/turbine/services/localization/LocalizationTool.java
URL: http://svn.apache.org/viewvc/turbine/core/branches/TURBINE_2_3_BRANCH/src/java/org/apache/turbine/services/localization/LocalizationTool.java?view=diff&rev=551164&r1=551163&r2=551164
==============================================================================
--- turbine/core/branches/TURBINE_2_3_BRANCH/src/java/org/apache/turbine/services/localization/LocalizationTool.java (original)
+++ turbine/core/branches/TURBINE_2_3_BRANCH/src/java/org/apache/turbine/services/localization/LocalizationTool.java Wed Jun 27 07:04:14 2007
@@ -50,7 +50,7 @@
     /**
      * The name of the bundle for this tool to use.
      */
-    private String bundleName;
+    protected String bundleName;
 
     /**
      * Creates a new instance.  Used by <code>PullService</code>.
@@ -171,7 +171,7 @@
      * Sets the request to get the <code>Accept-Language</code> header
      * from (reset on each request).
      */
-    public final void init(Object data)
+    public void init(Object data)
     {
         if (data instanceof RunData)
         {

Modified: turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/changes.xml?view=diff&rev=551164&r1=551163&r2=551164
==============================================================================
--- turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/changes.xml (original)
+++ turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/changes.xml Wed Jun 27 07:04:14 2007
@@ -29,6 +29,11 @@
 <body>
   <release version="2.3.3-dev" date="in Subversion">
     <action type="add" dev="seade">
+      The init() method in LocalizationTool is no longer declared as final -
+      you can now extend this class to provide alternative ways of initializing
+      the locale.
+    </action>
+    <action type="add" dev="seade">
       Default ServerData values can now be specified in
       TurbineResources.properties.
     </action>