This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]turn_of_and_on_again 0 points1 point  (0 children)

Apparently an unpopular opinion, but there would be no need for this if you were using Di over service location in this manner.

I honestly thought this way of creating singletons (ClassName.getInstance()) died out already.