What happened to CompositeModuleCatalog in Prism 4?

Topics: Prism v4 - WPF 4
Mar 13, 2014 at 4:27 PM
I'm currently in the process of upgrading our platform and application from Prism 2.0 to Prism 4.1 (WPF). When doing this, I noticed that the class CompositeModuleCatalog had been removed. Is there a reason for this? Can I replace it with some other (better?) class? Or is it still safe to take the CompositeModuleCatalog class from the Prism 2 library and continue using it for our purposes? Thanks.
Mar 17, 2014 at 4:55 PM
Hi,

The ModuleCatalog class would be still present in PRISM 4.1. You could find it at the following namespace on the Library:

  • Microsoft.Practices.Prism.Modularity;
In addition, you can find the same class description on the MSDN site:

I hope this helps,
Regards.

Gabriel Ostrowsky
https://blogs.southworks.net/gostrowsky
Mar 17, 2014 at 4:59 PM
Yes, thanks. But my questions is regarding a subclass of ModuleCatalog called CompositeModuleCatalog, which was present in Prism 2 but cannot be found in Prism 4.
Mar 17, 2014 at 5:21 PM
Hi,

I am afraid I am not able to find the CompositeModuleCatalog class in Prism 2 library. Could you tell me where is it located?

In addition, I found an implementation of a CompositeModuleCatalog which inherits of ModuleCatalog, but this would not be part of the Prism Library.

You would be able to see the Prism changes from 2 to 4.1 and what considerations you should keep in mind in order to Upgrade your solution in the following MSDN Prism Guide section:

Regards.
Gabriel Ostrowsky
https://blogs.southworks.net/gostrowsky
Mar 18, 2014 at 9:48 AM
Yes, this is very weird. I haven't been able to find any reference to a CompositeModuleCatalog class anywhere. Nevertheless, in our Prism 2 (CAGv2) library residing in TFS, there is a CompositeModuleCatalog.Desktop.cs file located in CAL\Desktop\Composite\Modularity (Microsoft.Practices.Composite.Modularity namespace). And the class doesn't seem to be written by any of our developers. Very strange. Anyway, I have already successfully upgraded our platform and application to Prism 4.1, extending it with the CompositeModuleCatalog class from our CAGv2 code. Thanks for your input.
Mar 18, 2014 at 9:50 AM
Follow-up question: Where did you find the CompositeModuleCatalog class you mentioned, that was not part of the Prism library?
Mar 18, 2014 at 7:46 PM
Edited Mar 18, 2014 at 7:47 PM
Hi,

There is a brief summary of Catel's job in the following blog post about the module catalog composition extension for Prism:

In addition, you may find the CompositeModuleCatalog.cs implementation of ___Catel'___s extension in the following site:

Regards.
Gabriel Ostrowsky
https://blogs.southworks.net/gostrowsky