KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > bridge > util > xml > query > QueryConfigurer


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.bridge.util.xml.query;
11
12
13 /**
14  * A QueryConfigurer has the task to instantiate {@link QueryDefinition}s (wrappers around Query's)
15  * and {@link FieldDefinition}s (wrappers around StepFields).
16  *
17  * @author Pierre van Rooden
18  * @version $Id: QueryConfigurer.java,v 1.6 2005/12/27 15:48:21 michiel Exp $
19  * @since MMBase-1.8
20  **/

21 public class QueryConfigurer {
22
23     private static final QueryConfigurer DEFAULT_CONFIGURER = new QueryConfigurer();
24
25     public QueryDefinition getQueryDefinition() {
26         return new QueryDefinition();
27     }
28
29     public FieldDefinition getFieldDefinition() {
30         return new FieldDefinition();
31     }
32
33     public static QueryConfigurer getDefaultConfigurer() {
34         return DEFAULT_CONFIGURER;
35     }
36
37 }
38
Popular Tags