ModelLocator & Modules
I am building a large scale RIA application using Flash Builder 4. At this point, I have the application separated into 10 modules (there will continue to be more added). The main module holds navigation and a container to display the other modules. Each module has it's own data model. Cairngorm best practices suggest that I should define a reference to each data model in the main ModelLocator. If I define a reference to each module's data model in the main module's ModelLocator, the compiler would compile each of those data model classes, as well as any classes that its properties are typed as (mainly VO/DTOs), into the main module. While it is expected that the compiler work this way, it is not ideal. I'd like each module to be as small and self-contained as possible, but this best practice method bloats the main module. I currently do not have a reference to each data model on the ModelLocator, and it makes me feel like I am misusing ModelLocator. Please share some thoughts on this.
