velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nbu...@apache.org
Subject svn commit: r532000 - in /velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic: AlternatorTool.java ResourceTool.java
Date Tue, 24 Apr 2007 16:28:46 GMT
Author: nbubna
Date: Tue Apr 24 09:28:43 2007
New Revision: 532000

URL: http://svn.apache.org/viewvc?view=rev&rev=532000
Log:
add a few more default keys

Modified:
    velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/AlternatorTool.java
    velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/ResourceTool.java

Modified: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/AlternatorTool.java
URL: http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/AlternatorTool.java?view=diff&rev=532000&r1=531999&r2=532000
==============================================================================
--- velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/AlternatorTool.java
(original)
+++ velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/AlternatorTool.java
Tue Apr 24 09:28:43 2007
@@ -21,6 +21,7 @@
 
 import java.util.List;
 import java.util.Map;
+import org.apache.velocity.tools.config.DefaultKey;
 
 /**
  * Simple tool to provide easy in-template instantiation of
@@ -55,6 +56,7 @@
  * @since Velocity Tools 1.2
  * @version $Revision$ $Date$
  */
+@DefaultKey("alternator")
 public class AlternatorTool
 {
     /** @since VelocityTools 1.3 */

Modified: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/ResourceTool.java
URL: http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/ResourceTool.java?view=diff&rev=532000&r1=531999&r2=532000
==============================================================================
--- velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/ResourceTool.java
(original)
+++ velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/ResourceTool.java
Tue Apr 24 09:28:43 2007
@@ -24,6 +24,7 @@
 import java.util.Locale;
 import java.util.Map;
 import java.util.ResourceBundle;
+import org.apache.velocity.tools.config.DefaultKey;
 
 /**
  * <p>Tool for accessing ResourceBundles and formatting messages therein.</p>
@@ -61,6 +62,7 @@
  * @version $Revision$ $Date: 2006-11-27 10:49:37 -0800 (Mon, 27 Nov 2006) $
  * @since VelocityTools 1.3
  */
+@DefaultKey("text")
 public class ResourceTool
 {
     public static final String BUNDLES_KEY = "bundles";



Mime
View raw message