cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r510944 - in /cocoon/trunk/blocks/cocoon-repository/cocoon-repository-impl/src/main/java/org/apache/cocoon/components/source: helpers/DelaySourceRefresher.java impl/CachingSource.java
Date Fri, 23 Feb 2007 13:35:08 GMT
Author: cziegeler
Date: Fri Feb 23 05:35:07 2007
New Revision: 510944

URL: http://svn.apache.org/viewvc?view=rev&rev=510944
Log:
Clean up code

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

Modified: cocoon/trunk/blocks/cocoon-repository/cocoon-repository-impl/src/main/java/org/apache/cocoon/components/source/helpers/DelaySourceRefresher.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-repository/cocoon-repository-impl/src/main/java/org/apache/cocoon/components/source/helpers/DelaySourceRefresher.java?view=diff&rev=510944&r1=510943&r2=510944
==============================================================================
--- cocoon/trunk/blocks/cocoon-repository/cocoon-repository-impl/src/main/java/org/apache/cocoon/components/source/helpers/DelaySourceRefresher.java
(original)
+++ cocoon/trunk/blocks/cocoon-repository/cocoon-repository-impl/src/main/java/org/apache/cocoon/components/source/helpers/DelaySourceRefresher.java
Fri Feb 23 05:35:07 2007
@@ -53,6 +53,7 @@
 import org.apache.cocoon.Processor;
 import org.apache.cocoon.components.source.SourceUtil;
 import org.apache.cocoon.components.thread.RunnableManager;
+import org.apache.cocoon.configuration.Settings;
 import org.apache.cocoon.environment.background.BackgroundEnvironment;
 import org.apache.cocoon.environment.internal.EnvironmentHelper;
 import org.apache.cocoon.util.NetUtils;
@@ -106,7 +107,6 @@
 	 */
 	public void contextualize(Context context) throws ContextException {
         this.context = context;
-        this.workDir = (File) context.get(Constants.CONTEXT_WORK_DIR);
 	}
 
     /* (non-Javadoc)
@@ -116,6 +116,7 @@
         this.manager = manager;
         this.resolver = (SourceResolver) this.manager.lookup(SourceResolver.ROLE);
         this.runnable = (RunnableManager) this.manager.lookup(RunnableManager.ROLE);
+        this.workDir = new File(((Settings)this.manager.lookup(Settings.ROLE)).getWorkDirectory());
     }
 
     public void configure(Configuration configuration) throws ConfigurationException {
@@ -340,7 +341,7 @@
 
     protected class RefresherTask extends AbstractLogEnabled
                                   implements Runnable {
-        private String key;
+        private final String key;
         private String uri;
         private long interval;
 

Modified: cocoon/trunk/blocks/cocoon-repository/cocoon-repository-impl/src/main/java/org/apache/cocoon/components/source/impl/CachingSource.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-repository/cocoon-repository-impl/src/main/java/org/apache/cocoon/components/source/impl/CachingSource.java?view=diff&rev=510944&r1=510943&r2=510944
==============================================================================
--- cocoon/trunk/blocks/cocoon-repository/cocoon-repository-impl/src/main/java/org/apache/cocoon/components/source/impl/CachingSource.java
(original)
+++ cocoon/trunk/blocks/cocoon-repository/cocoon-repository-impl/src/main/java/org/apache/cocoon/components/source/impl/CachingSource.java
Fri Feb 23 05:35:07 2007
@@ -45,7 +45,6 @@
 import org.apache.cocoon.caching.validity.NamedEvent;
 import org.apache.cocoon.components.sax.XMLByteStreamCompiler;
 import org.apache.cocoon.components.sax.XMLByteStreamInterpreter;
-import org.apache.cocoon.components.source.SourceUtil;
 import org.apache.cocoon.xml.ContentHandlerWrapper;
 import org.apache.cocoon.xml.XMLConsumer;
 



Mime
View raw message