中国开发网: 论坛: 程序员情感CBD: 贴子 379426
空山新雨
no, no, no. If you need parameters in the static getter, that's not a good singleton.
Because you expect every client to know the parameter, or to know what to pass if this parameter can be omitted. That's stupid.

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录