Play! framework uses a of statics

后端 未结 14 1879
太阳男子
太阳男子 2020-12-07 15:29

Waaah, the Play! framework has so many static methods. Where I go to school, we were told never ever to use any statics, yet Play! uses it like there\'s no tomorrow

14条回答
  •  北海茫月
    2020-12-07 16:16

    I suppose, at the very least, we could use singleton objects

    Singleton in Java does not makes much difference than using all static. There is not much to store as state as well. I think you should not worry about it.

    So, should I be concerned about this? Did the way the Play! developers programmed it make it so that all these statics don't pose a problem?

    It would not. In fact, it's alright.

提交回复
热议问题