|
Hello All,
With all the care that must be taken in order to avoid a 'DSLitis', I think that a visual designer (-> graphical DSL) would be of great value for developers using MEF. This designer would allow to:
- Add owned or third-party components (CLR types, COM components or AddIns) to the designer surface. - Define Contract Types. - Define Imports of components. - Define Exports & ExportProperty of components. - Simulate a binding between the represented components and review composition issues. - Save the configuration in an XML file that can be later used by a ValueResolver to provide configuration to the CompositionContainer.
The fact that MEF allow composition based on Duck Types & string Meta Data provides some advantages in terms of flexibility, but expose some risk in terms of predictability (hence the 'TryBind' method on the CompositionContainer). Thus, the ability to simulate bindings at design time and view where the issues are would be a great plus in using MEF (of course, we still have to use TryBind at runtime to catch any mistake due to imports that were later added to the released application).
What do you think?
Steve
- Changed TypeAlex BulankouMSFT, OwnerFriday, June 20, 2008 3:47 PMQuestion
-
|