KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > util > transformers > ParameterizedTransformerFactory


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

10 package org.mmbase.util.transformers;
11
12 import org.mmbase.util.functions.Parameters;
13
14 /**
15  * ParameterizedTransformerFactories, can create {@link Transformer} instances, but can do that
16  * 'parameterized'. Implementations of this define 'createParameters' which returns an empty {@link
17  * org.mmbase.util.functions.Parameters} object which defines which parameters are accepted.
18  *
19  * The user can then fill this Parameters object and feed it to {@link #createTransformer(Parameters)}.
20  *
21  * @author Michiel Meeuwissen
22  * @since MMBase-1.8
23  */

24
25 public interface ParameterizedTransformerFactory {
26
27     /**
28      * Creates a parameterized transformer.
29      */

30     Transformer createTransformer(Parameters parameters);
31
32     /**
33      * Create empty <code>Parameters</code> object for use with {@link #createTransformer(Parameters)}.
34      */

35     Parameters createParameters();
36
37 }
38
Popular Tags