I have a service with 10 methods on the interface. There are also 10 injected dependencies into the implementation class. This class is getting way too fat. The interface has a large number of users.
To my understanding, there are at least two main perspectives I can have on refactoring this: I could try to determine common usage patterns of the interface and split it into multiple interfaces. I could also look at the dependencies injected into the implementation class and decide to split the interface into groups decided by the dependencies of the implementation methods. (I could of course just split the whole thing into 10 interfaces too )
Now in all likelyhood I want to do something right in the middle, leaning slightly towards the first approach. Ideally I would be looking at some kind of scenario analyzer taht would let me see both these perspectives at the same time.
Anyone know any feature in idea 8 that can help me ? even just grouping the usage of different methods of an interface would be really nice !