geirm 2003/10/23 06:50:56
Modified: src/java/org/apache/velocity/runtime RuntimeConstants.java
src/java/org/apache/velocity/runtime/resource
ResourceCacheImpl.java
Log:
modified the name of the param to be the 'defaultcache' size, so people
won't think it's used to set the size of any cache impl that they use
Revision Changes Path
1.36 +3 -3
jakarta-velocity/src/java/org/apache/velocity/runtime/RuntimeConstants.java
Index: RuntimeConstants.java
===================================================================
RCS file:
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/runtime/RuntimeConstants.java,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- RuntimeConstants.java 22 Oct 2003 10:50:42 -0000 1.35
+++ RuntimeConstants.java 23 Oct 2003 13:50:55 -0000 1.36
@@ -197,8 +197,8 @@
* The <code>resource.manager.cache.size</code> property specifies
* the cache upper bound (if relevant).
*/
- public static String RESOURCE_MANAGER_CACHE_SIZE =
- "resource.manager.cache.size";
+ public static String RESOURCE_MANAGER_DEFAULTCACHE_SIZE =
+ "resource.manager.defaultcache.size";
/*
* ----------------------------------------------------------------------
1.4 +2 -2
jakarta-velocity/src/java/org/apache/velocity/runtime/resource/ResourceCacheImpl.java
Index: ResourceCacheImpl.java
===================================================================
RCS file:
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/runtime/resource/ResourceCacheImpl.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ResourceCacheImpl.java 22 Oct 2003 03:00:46 -0000 1.3
+++ ResourceCacheImpl.java 23 Oct 2003 13:50:55 -0000 1.4
@@ -95,7 +95,7 @@
rsvc = rs;
int maxSize =
- rsvc.getInt(RuntimeConstants.RESOURCE_MANAGER_CACHE_SIZE, 89);
+ rsvc.getInt(RuntimeConstants.RESOURCE_MANAGER_DEFAULTCACHE_SIZE, 89);
if (maxSize > 0)
{
// Create a whole new Map here to avoid hanging on to a
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]