KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > xml > querying > impl > xtas > QueryProcessorFactory


1 package org.exoplatform.services.xml.querying.impl.xtas;
2
3 /**
4  * Factory prodused XTAS instructions executor
5  * @version $Id: QueryProcessorFactory.java 566 2005-01-25 12:50:49Z kravchuk $
6  */

7 public class QueryProcessorFactory {
8
9     private static QueryProcessorFactory instance = null;
10
11     /** @link dependency
12      * @stereotype instantiate*/

13     /*# QueryProcessor lnkQueryProcessor; */
14
15     protected QueryProcessorFactory(){}
16
17     public QueryProcessor getProcessor()
18     {
19         return new QueryProcessor();
20     }
21
22     public static QueryProcessorFactory getInstance()
23     {
24         if (instance == null) {
25             instance = new QueryProcessorFactory();
26         }
27         return instance;
28     }
29 }
30
Popular Tags