KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > piratepete > dbpirate > ApplicationManager


1 package com.piratepete.dbpirate;
2
3 import com.piratepete.util.db.*;
4
5 /**
6  * ApplicationManager Class
7  * Copyright (C) 2003 David L. Whitehurst<p>
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * as published by the Free Software Foundation; either version 2
12  * of the License, or (at your option) any later version.<p>
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.<p>
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.<p>
22  *
23  * <a HREF="http://www.piratepetesoftware.com">piratepetesoftware.com</a><br>
24  * <a HREF="mailto:dlwhitehurst@comcast.net">dlwhitehurst@comcast.net</a>
25  *
26  * @version 1.0a
27  */

28 public class ApplicationManager {
29     private static Registry reg = null;
30     private static DBWorkerFactory workerFactory = null;
31     
32     public ApplicationManager() {
33         createRegistry();
34         createFactories();
35     }
36     
37     public void createLists() {
38     }
39
40     public void createFactories() {
41         workerFactory = new DBWorkerFactory();
42     }
43
44     public void createRegistry() {
45         reg = new Registry();
46     }
47     
48     public static Registry getRegistry() {
49         return reg;
50     }
51     
52     public static DBWorkerFactory getDBWorkerFactory() {
53         return workerFactory;
54     }
55 }
56
Popular Tags