You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2006/10/02 14:18:24 UTC
svn commit: r451993 - in
/cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components:
flow/AbstractInterpreter.java flow/ConfigurableInterpreter.java
flow/Interpreter.java treeprocessor/sitemap/ScriptNode.java
Author: cziegeler
Date: Mon Oct 2 05:18:23 2006
New Revision: 451993
URL: http://svn.apache.org/viewvc?view=rev&rev=451993
Log:
Add register method to the Interpreter interface (per Vadim's request :) )
Removed:
cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/flow/ConfigurableInterpreter.java
Modified:
cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/flow/AbstractInterpreter.java
cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/flow/Interpreter.java
cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/treeprocessor/sitemap/ScriptNode.java
Modified: cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/flow/AbstractInterpreter.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/flow/AbstractInterpreter.java?view=diff&rev=451993&r1=451992&r2=451993
==============================================================================
--- cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/flow/AbstractInterpreter.java (original)
+++ cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/flow/AbstractInterpreter.java Mon Oct 2 05:18:23 2006
@@ -57,7 +57,7 @@
*/
public abstract class AbstractInterpreter
extends AbstractLogEnabled
- implements Serviceable, Contextualizable, ConfigurableInterpreter,
+ implements Serviceable, Contextualizable, Interpreter,
SingleThreaded, Configurable, Disposable {
// The instance ID of this interpreter, used to identify user scopes
Modified: cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/flow/Interpreter.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/flow/Interpreter.java?view=diff&rev=451993&r1=451992&r2=451993
==============================================================================
--- cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/flow/Interpreter.java (original)
+++ cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/flow/Interpreter.java Mon Oct 2 05:18:23 2006
@@ -180,4 +180,13 @@
void handleContinuation(String continuationId, List params,
Redirector redirector)
throws Exception;
+
+ /**
+ * Registers a source file with the interpreter. Using this method
+ * an implementation keeps track of all the script files which are
+ * compiled. This allows them to reload the script files which get
+ * modified on the file system.
+ *
+ */
+ void register(String source);
}
Modified: cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/treeprocessor/sitemap/ScriptNode.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/treeprocessor/sitemap/ScriptNode.java?view=diff&rev=451993&r1=451992&r2=451993
==============================================================================
--- cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/treeprocessor/sitemap/ScriptNode.java (original)
+++ cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/treeprocessor/sitemap/ScriptNode.java Mon Oct 2 05:18:23 2006
@@ -16,7 +16,6 @@
*/
package org.apache.cocoon.components.treeprocessor.sitemap;
-import org.apache.cocoon.components.flow.ConfigurableInterpreter;
import org.apache.cocoon.components.flow.Interpreter;
import org.apache.cocoon.components.treeprocessor.AbstractProcessingNode;
import org.apache.cocoon.components.treeprocessor.InvokeContext;
@@ -52,8 +51,6 @@
}
public void registerScriptWithInterpreter(Interpreter interpreter) {
- if (interpreter instanceof ConfigurableInterpreter) {
- ((ConfigurableInterpreter)interpreter).register(this.source);
- }
+ interpreter.register(this.source);
}
}