Composite template with bi-directional linkage between component and composite
I have the problem mentioned in the title of this post. By default, the Composite Pattern has an explicit implementation of the Composite → Component association. But I also need to implement backward merging: Component -> Composite.
In short, what's the best solution for bi-directional communication between a component and a composite object in a composite template?
+3
source to share