You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@turbine.apache.org by tv...@apache.org on 2011/05/30 12:01:17 UTC

svn commit: r1129102 - in /turbine/core/trunk/src/java/org/apache/turbine/services: localization/LocalizationTool.java pull/tools/TemplateLink.java

Author: tv
Date: Mon May 30 10:01:17 2011
New Revision: 1129102

URL: http://svn.apache.org/viewvc?rev=1129102&view=rev
Log:
A framework should not keep users from extending it

Modified:
    turbine/core/trunk/src/java/org/apache/turbine/services/localization/LocalizationTool.java
    turbine/core/trunk/src/java/org/apache/turbine/services/pull/tools/TemplateLink.java

Modified: turbine/core/trunk/src/java/org/apache/turbine/services/localization/LocalizationTool.java
URL: http://svn.apache.org/viewvc/turbine/core/trunk/src/java/org/apache/turbine/services/localization/LocalizationTool.java?rev=1129102&r1=1129101&r2=1129102&view=diff
==============================================================================
--- turbine/core/trunk/src/java/org/apache/turbine/services/localization/LocalizationTool.java (original)
+++ turbine/core/trunk/src/java/org/apache/turbine/services/localization/LocalizationTool.java Mon May 30 10:01:17 2011
@@ -57,12 +57,12 @@ public class LocalizationTool implements
     {
         if (localizationService == null)
         {
-            try 
+            try
             {
                 localizationService = (LocalizationService)TurbineServices.getInstance()
                     .getService(LocalizationService.ROLE);
             }
-            catch (Exception e) 
+            catch (Exception e)
             {
                 throw new InstantiationException("Problem looking up Localization Service:"+e.getMessage());
             }
@@ -177,7 +177,7 @@ public class LocalizationTool implements
      * 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/trunk/src/java/org/apache/turbine/services/pull/tools/TemplateLink.java
URL: http://svn.apache.org/viewvc/turbine/core/trunk/src/java/org/apache/turbine/services/pull/tools/TemplateLink.java?rev=1129102&r1=1129101&r2=1129102&view=diff
==============================================================================
--- turbine/core/trunk/src/java/org/apache/turbine/services/pull/tools/TemplateLink.java (original)
+++ turbine/core/trunk/src/java/org/apache/turbine/services/pull/tools/TemplateLink.java Mon May 30 10:01:17 2011
@@ -70,13 +70,13 @@ public class TemplateLink
 
 
     /** Do we want a relative link? */
-    boolean wantRelative = false;
+    protected boolean wantRelative = false;
 
     /** cache of the template name for getPage() */
-    private String template = null;
+    protected String template = null;
 
     /** TemplateURI used as backend for this object */
-    private TemplateURI templateURI = null;
+    protected TemplateURI templateURI = null;
 
     /** Logging */
     private static Log log = LogFactory.getLog(TemplateLink.class);