Delphi service locator
问题 As I had before in Java, I try to do a ServiceLocator in Delphi. Some code exist but it's didn't work like expected. I don't want a case with enum or anything else, I want a code that I don't have to touch when I create a new class. I have a global interface for my application, and all the other : type IMyApp = interface end; IBuilder = interface(IMyApp) procedure Build; end; IPrint = interface(IMyApp) procedure Print; end; ICalculator = interface(IMyApp) procedure Calc; end; I want a class