I'm having difficulty grappling with a scenario where I have designed a component and a subsequent Mediator for it, then down the road I need to reuse that component as a subcomponent. It seems like I have no choice but to create a new Mediator class that can deal with the multiple subcomponents.
A concrete example would a video player application that displays one window for one video. Then down the road say I want to reuse that video component inside of some tiling component so multiple streams can be displayed simultaneously.
My first inclination is to create a wrapper Mediator that manages the video display Mediators. In essence this is what a typical ApplicationMediator in the PureMVC demos, but each of the components are unique.
In the same way, I'd like to manage multiple instances of one component, but the way Mediators are registered right now I can only have one instance of any given Mediator.
Does anyone have a good way to approach this scenario?