feeding dependencies to a factory class via IoC?

前端 未结 2 869
执笔经年
执笔经年 2021-01-03 02:32

I have a factory class that decides which of four available subclasses it should instantiate and return. As you would expect, all subclasses implement the same interface:

2条回答
  •  情话喂你
    2021-01-03 03:26

    sounds like you want your cake and to eat it too. you need to commit to your IOC strategy.

    you will produce mo an betta code and the chicks will dig you more too.... ;p

提交回复
热议问题