KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > service > cmr > repository > TemplateProcessor


1 /*
2  * Copyright (C) 2005 Alfresco, Inc.
3  *
4  * Licensed under the Mozilla Public License version 1.1
5  * with a permitted attribution clause. You may obtain a
6  * copy of the License at
7  *
8  * http://www.alfresco.org/legal/license.txt
9  *
10  * Unless required by applicable law or agreed to in writing,
11  * software distributed under the License is distributed on an
12  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13  * either express or implied. See the License for the specific
14  * language governing permissions and limitations under the
15  * License.
16  */

17 package org.alfresco.service.cmr.repository;
18
19 import java.io.Writer JavaDoc;
20
21 /**
22  * Interface to be implemented by template engine wrapper classes. The developer is responsible
23  * for interfacing to an appropriate template engine, using the supplied data model as input to
24  * the template and directing the output to the Writer stream.
25  *
26  * @author Kevin Roast
27  */

28 public interface TemplateProcessor
29 {
30     /**
31      * Process a template against the supplied data model and write to the out.
32      *
33      * @param template Template name/path
34      * @param model Object model to process template against
35      * @param out Writer object to send output too
36      */

37     public void process(String JavaDoc template, Object JavaDoc model, Writer JavaDoc out);
38 }
39
Popular Tags