KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > sharing > JahiaDataSourceManager


1 //
2
// JahiaDataSourceManager
3
// EV 03.12.2000
4
//
5
// fields()
6
//
7

8 package org.jahia.sharing;
9
10 import org.jahia.utils.JahiaConsole;
11
12
13
14 public class JahiaDataSourceManager {
15
16     private static JahiaDataSourceManager theObject = null;
17     private FieldSharingManager fields = null;
18
19     
20
21     /***
22         * constructor
23         * EV 03.12.2000
24         *
25         */

26     private JahiaDataSourceManager()
27     {
28         JahiaConsole.println( "JahiaDataSourceManager", "***** Starting the Jahia DataSource Manager *****" );
29         fields = FieldSharingManager.getInstance();
30     } // end constructor
31

32     
33
34     /***
35         * getInstance
36         * EV 03.12.2000
37         *
38         */

39     public static synchronized JahiaDataSourceManager getInstance()
40     {
41         if (theObject == null) {
42             theObject = new JahiaDataSourceManager();
43         }
44         return theObject;
45     } // end getInstance
46

47
48
49     /***
50         * fields
51         * EV 03.12.2000
52         *
53         */

54     public FieldSharingManager fields()
55     {
56         return fields;
57     } // end fields
58

59
60 } // end JahiaDataSourceManager
61
Popular Tags