[seam-commits] Seam SVN: r8914 - in trunk: ui/src/main/java/org/jboss/seam/ui/renderkit and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Thu Sep 4 18:38:34 EDT 2008


Author: pete.muir at jboss.org
Date: 2008-09-04 18:38:33 -0400 (Thu, 04 Sep 2008)
New Revision: 8914

Modified:
   trunk/src/main/org/jboss/seam/cache/CacheProvider.java
   trunk/ui/src/main/java/org/jboss/seam/ui/renderkit/CacheRendererBase.java
Log:
JBSEAM-3382, thanks to Przemyslaw Jaskierski

Modified: trunk/src/main/org/jboss/seam/cache/CacheProvider.java
===================================================================
--- trunk/src/main/org/jboss/seam/cache/CacheProvider.java	2008-09-04 22:34:17 UTC (rev 8913)
+++ trunk/src/main/org/jboss/seam/cache/CacheProvider.java	2008-09-04 22:38:33 UTC (rev 8914)
@@ -71,7 +71,7 @@
     * @param key - a key to identify the object.
     * @return - the object if found or null if not
     */
-   public abstract Object get(String key, String region);
+   public abstract Object get(String region, String key);
 
    /**
     * Put an object into the cache. The object is placed in the default cache

Modified: trunk/ui/src/main/java/org/jboss/seam/ui/renderkit/CacheRendererBase.java
===================================================================
--- trunk/ui/src/main/java/org/jboss/seam/ui/renderkit/CacheRendererBase.java	2008-09-04 22:34:17 UTC (rev 8913)
+++ trunk/ui/src/main/java/org/jboss/seam/ui/renderkit/CacheRendererBase.java	2008-09-04 22:38:33 UTC (rev 8914)
@@ -36,7 +36,7 @@
       if (cache.isEnabled())
       {
          String key = cache.getKey();
-         String cachedContent = (String) cache.getCacheProvider().get(key, cache.getRegion()); 
+         String cachedContent = (String) cache.getCacheProvider().get(cache.getRegion(), key); 
          if (cachedContent == null)
          {
             log.debug("rendering from scratch: " + key);
@@ -47,7 +47,7 @@
             context.setResponseWriter(writer);
             String output = stringWriter.getBuffer().toString();
             writer.write(output);
-            cache.getCacheProvider().put(key, cache.getRegion(), output);
+            cache.getCacheProvider().put(cache.getRegion(), key, output);
          }
          else
          {




More information about the seam-commits mailing list