Singleton for Application Configuration

前端 未结 6 487
南方客
南方客 2021-02-05 02:49

In all my projects till now, I use to use singleton pattern to access Application configuration throughout the application. Lately I see lot of articles taking about not to use

6条回答
  •  逝去的感伤
    2021-02-05 03:23

    The singleton pattern seems to be the way to go. Here's a Setting class that I wrote that works well for me.

提交回复
热议问题