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 13:06:18 UTC

svn commit: r451976 - in /cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/flow: AbstractInterpreter.java ConfigurableInterpreter.java

Author: cziegeler
Date: Mon Oct  2 04:06:17 2006
New Revision: 451976

URL: http://svn.apache.org/viewvc?view=rev&rev=451976
Log:
Add new interface for configurable interpreters

Added:
    cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/flow/ConfigurableInterpreter.java   (with props)
Modified:
    cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/flow/AbstractInterpreter.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=451976&r1=451975&r2=451976
==============================================================================
--- 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 04:06:17 2006
@@ -57,7 +57,7 @@
  */
 public abstract class AbstractInterpreter
         extends AbstractLogEnabled
-        implements Serviceable, Contextualizable, Interpreter,
+        implements Serviceable, Contextualizable, ConfigurableInterpreter,
                    SingleThreaded, Configurable, Disposable {
 
     // The instance ID of this interpreter, used to identify user scopes

Added: cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/flow/ConfigurableInterpreter.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/flow/ConfigurableInterpreter.java?view=auto&rev=451976
==============================================================================
--- cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/flow/ConfigurableInterpreter.java (added)
+++ cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/flow/ConfigurableInterpreter.java Mon Oct  2 04:06:17 2006
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.cocoon.components.flow;
+
+/**
+ * @version $Id$
+ */
+public interface ConfigurableInterpreter extends Interpreter {
+
+    /**
+     * 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);
+}

Propchange: cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/flow/ConfigurableInterpreter.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/flow/ConfigurableInterpreter.java
------------------------------------------------------------------------------
    svn:keywords = Id