cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject svn commit: r433752 - /cocoon/trunk/blocks/cocoon-scratchpad/cocoon-scratchpad-impl/src/main/java/org/apache/cocoon/components/source/impl/CachingSource.java
Date Tue, 22 Aug 2006 21:05:17 GMT
Author: vgritsenko
Date: Tue Aug 22 14:05:17 2006
New Revision: 433752

URL: http://svn.apache.org/viewvc?rev=433752&view=rev
Log:
add TODO, clear response on dispose.

Modified:
    cocoon/trunk/blocks/cocoon-scratchpad/cocoon-scratchpad-impl/src/main/java/org/apache/cocoon/components/source/impl/CachingSource.java

Modified: cocoon/trunk/blocks/cocoon-scratchpad/cocoon-scratchpad-impl/src/main/java/org/apache/cocoon/components/source/impl/CachingSource.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-scratchpad/cocoon-scratchpad-impl/src/main/java/org/apache/cocoon/components/source/impl/CachingSource.java?rev=433752&r1=433751&r2=433752&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-scratchpad/cocoon-scratchpad-impl/src/main/java/org/apache/cocoon/components/source/impl/CachingSource.java
(original)
+++ cocoon/trunk/blocks/cocoon-scratchpad/cocoon-scratchpad-impl/src/main/java/org/apache/cocoon/components/source/impl/CachingSource.java
Tue Aug 22 14:05:17 2006
@@ -76,6 +76,8 @@
                            implements Serviceable, Initializable, XMLizable,
                                       Source {
 
+    // TODO: Decouple from eventcache block.
+    
     // ---------------------------------------------------- Constants
 
     public static final String CACHE_EXPIRES_PARAM = "cache-expires";
@@ -198,6 +200,7 @@
      * Cleanup.
      */
     public void dispose() {
+        this.response = null;
         this.source = null;
         this.manager = null;
         this.cache = null;
@@ -347,8 +350,8 @@
     public InputStream getInputStream() throws IOException, SourceException {
         try {
             return new ByteArrayInputStream(getBinaryResponse());
-        } catch (IOException se) {
-            throw new SourceException("Failure getting input stream", se);
+        } catch (IOException e) {
+            throw new SourceException("Failure getting input stream", e);
         }
     }
 



Mime
View raw message