Author: simonetripodi
Date: Thu Jul  8 17:10:00 2010
New Revision: 961841

URL: http://svn.apache.org/viewvc?rev=961841&view=rev
Log:
InMemoryLRUCache is a too generic name, since its tasks is just store RuleSet, 
makes more sense calling it properly

Added:
    
commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/internal/RuleSetCache.java
      - copied, changed from r961839, 
commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/internal/InMemoryLRUCache.java
Removed:
    
commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/internal/InMemoryLRUCache.java
Modified:
    
commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/DigesterLoader.java

Modified: 
commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/DigesterLoader.java
URL: 
http://svn.apache.org/viewvc/commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/DigesterLoader.java?rev=961841&r1=961840&r2=961841&view=diff
==============================================================================
--- 
commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/DigesterLoader.java
 (original)
+++ 
commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/DigesterLoader.java
 Thu Jul  8 17:10:00 2010
@@ -27,7 +27,7 @@ import org.apache.commons.digester.RuleS
 import 
org.apache.commons.digester.annotations.DigesterLoaderHandler.DefaultLoaderHandler;
 import 
org.apache.commons.digester.annotations.internal.DefaultAnnotationRuleProviderFactory;
 import 
org.apache.commons.digester.annotations.internal.DefaultDigesterLoaderHandlerFactory;
-import org.apache.commons.digester.annotations.internal.InMemoryLRUCache;
+import org.apache.commons.digester.annotations.internal.RuleSetCache;
 import org.apache.commons.digester.annotations.reflect.MethodArgument;
 import 
org.apache.commons.digester.annotations.spi.AnnotationRuleProviderFactory;
 import 
org.apache.commons.digester.annotations.spi.DigesterLoaderHandlerFactory;
@@ -46,7 +46,7 @@ public final class DigesterLoader {
      * In-memory LRU cache that stores already analyzed classes and relative
      * {...@link RuleSet}.
      */
-    private final InMemoryLRUCache cachedRuleSet = 
InMemoryLRUCache.getInstance();
+    private final RuleSetCache cachedRuleSet = RuleSetCache.getInstance();
 
     private final AnnotationRuleProviderFactory annotationRuleProviderFactory;
 

Copied: 
commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/internal/RuleSetCache.java
 (from r961839, 
commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/internal/InMemoryLRUCache.java)
URL: 
http://svn.apache.org/viewvc/commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/internal/RuleSetCache.java?p2=commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/internal/RuleSetCache.java&p1=commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/internal/InMemoryLRUCache.java&r1=961839&r2=961841&rev=961841&view=diff
==============================================================================
--- 
commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/internal/InMemoryLRUCache.java
 (original)
+++ 
commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/internal/RuleSetCache.java
 Thu Jul  8 17:10:00 2010
@@ -28,7 +28,7 @@ import org.apache.commons.digester.annot
  * @version $Id$
  * @since 2.1
  */
-public final class InMemoryLRUCache implements Serializable {
+public final class RuleSetCache implements Serializable {
 
     /**
      * This class serialVersionUID.
@@ -38,14 +38,14 @@ public final class InMemoryLRUCache impl
     /**
      * The static instance reference.
      */
-    private final static InMemoryLRUCache INSTANCE = new InMemoryLRUCache();
+    private final static RuleSetCache INSTANCE = new RuleSetCache();
 
     /**
      * Returns the static instance reference.
      *
      * @return the static instance reference.
      */
-    public static InMemoryLRUCache getInstance() {
+    public static RuleSetCache getInstance() {
         return INSTANCE;
     }
 
@@ -85,7 +85,7 @@ public final class InMemoryLRUCache impl
     /**
      * This class can't be instantiated.
      */
-    private InMemoryLRUCache() {
+    private RuleSetCache() {
         // do nothing
     }
 


Reply via email to