A FactoryFactoryFactory in Production (2017)
I overlapped at LinkedIn at the same time as the author.  While there, I wrote my first (and to date only) FactoryFactory.<p>LinkedIn replaced its uses of Spring with a thing called Offspring. Offspring explicitly disavowed being a dependency injection framework, but it did a similar job for us. I rather liked it.  Notably, you just wrote Java with it.  Invariably, in Offspring, you&#x27;d have to write a FooFactory to construct your Foo object to inject it into some (other class.  By convention, all of the factories ended in Factory.<p>Well, I had a use case for a runtime class that needed to make a per-request factory to make little objects. So to make my Bars, I needed a BarFactory; and to construct the BarFactory, I needed an Offspring factory, thus BarFactoryFactory. There it was. I felt a little weird after that.<p>I suspect the EventFactoryFactoryFactory code here was such an Offspring factory being used for dependency injection, but I can&#x27;t explain why it produced a FactoryFactory.