Beispiel #1
0
        static public ServiceConfig GetInstance()
        {
            if (_instance == null)
            {
                lock (_synRoot)
                {
                    if (_instance == null)
                    {
                        ConfigureHandler handler = new ConfigureHandler(ServiceConfig.Reset);
                        DaoManager.ConfigureAndWatch(handler);

                        _instance             = new ServiceConfig();
                        _instance._daoManager = DaoManager.GetInstance("SqlMapDao");
                    }
                }
            }
            return(_instance);
        }