comparison geo-backend/src/main/java/de/intevation/gnv/geobackend/base/query/QueryExecutorFactory.java @ 132:5a583cff97ea

Implementation of the Datainfrastructure for fetching Data from different DataStores. geo-backend/trunk@12 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Fri, 04 Sep 2009 08:11:30 +0000
parents
children 3cbf11c67fdc
comparison
equal deleted inserted replaced
131:d8ff739b9f3b 132:5a583cff97ea
1 /**
2 *
3 */
4 package de.intevation.gnv.geobackend.base.query;
5
6 import org.apache.log4j.Logger;
7
8 /**
9 * @author Tim Englich <tim.englich@intevation.de>
10 *
11 */
12 public class QueryExecutorFactory {
13
14 /**
15 * the logger, used to log exceptions and additonaly information
16 */
17 private static Logger log = Logger.getLogger(QueryExecutorFactory.class);
18
19
20 /**
21 * The singleton Instance of this Factory.
22 */
23 private static QueryExecutorFactory instance = null;
24
25 /**
26 * Basic-Constructor of this Class
27 */
28 private QueryExecutorFactory() {
29 super();
30 }
31
32 /**
33 * This Method provides an singleton Instance of this Class.
34 * @return an singleton Instance of this Class
35 */
36 public static QueryExecutorFactory getInstance(){
37 if (instance == null){
38 instance = new QueryExecutorFactory();
39 }
40 return instance;
41 }
42
43
44 /**
45 * Getting the QueryExecutor
46 * @return the QueryExecutor
47 */
48 public QueryExecutor getQueryExecutor(){
49 return new DefaultQueryExceutor();
50 }
51 }

http://dive4elements.wald.intevation.org