KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > components > treeprocessor > ProcessingNode


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.cocoon.components.treeprocessor;
17
18 import org.apache.avalon.framework.thread.ThreadSafe;
19
20 import org.apache.cocoon.environment.Environment;
21 import org.apache.cocoon.util.location.Locatable;
22 import org.apache.cocoon.util.location.Location;
23
24 /**
25  *
26  * @author <a HREF="mailto:sylvain@apache.org">Sylvain Wallez</a>
27  * @version CVS $Id: ProcessingNode.java 232400 2005-08-12 22:14:26Z sylvain $
28  */

29
30 public interface ProcessingNode extends ThreadSafe, Locatable {
31
32     /**
33      * The key of the <code>SourceResolver</code> in the object model.
34      */

35     String JavaDoc OBJECT_SOURCE_RESOLVER = "source-resolver";
36
37     /**
38      * Process environment.
39      */

40     boolean invoke(Environment env, InvokeContext context) throws Exception JavaDoc;
41
42     /**
43      * Get the location of this node.
44      */

45     Location getLocation();
46 }
47
Popular Tags