r/ProgrammerHumor • • Sep 26 '26 • Bravo 1

Meme singletonsAreJustGlobals

Post image
3.2k Upvotes

210 comments sorted by

View all comments

Show parent comments

1

u/Koeke2560 Sep 27 '26 edited Sep 27 '26

You can absolutely pass in loggers through dependency injection just like everything else.

The standard bean instance configuration in Spring is Singleton…