clean-architecture

Single Responsibility Principle in Clean Architecture, Aggregating UseCases in one UseCaseManager which can provide UseCase based on In & Out Object.

╄→尐↘猪︶ㄣ 提交于 2019-11-28 08:49:22
问题 I want to implement Single Responsibility principle in my projects Domain layer (Clean MVVM). I've approx. 200 different use-cases which are being very hectic to manage. Now I'm thinking to create one UseCaseManager which can provide me required UseCase based on Input & Output Object. I've tried an approach but that's not looking very good.I'm mentioning some sample code, Please help me how can I aggregate all the UseCases to one UseCaseManager. UseCase1: public class ActualUseCase1 extends