If there was an abstract class Box, we could assign this box to the EventResolver and completely get rid of subsequent event resolvers (because the only difference between MessageEventResolver and other ones is that it uses MessageBox). Then we could move the suitable() method back on the ModuleProvider class. This is, however, more of a design decision.
If there was an abstract class
Box
, we could assign this box to theEventResolver
and completely get rid of subsequent event resolvers (because the only difference betweenMessageEventResolver
and other ones is that it usesMessageBox
). Then we could move thesuitable()
method back on theModuleProvider
class. This is, however, more of a design decision.