Inline below... Brian Klaas said the following on 09/14/2009 10:08 AM: > Peter (or anyone on Team Mach-II) can correct me if I'm wrong, but: > > 1. Inside your module folder, you can have your own views/model/ > listeners. > Certainly. Mach-II doesn't care how you have your components structured. > 2. The listener definition in the XML config for your module overrides > anything that's in the "main" XML config for the application. > Yep, as the documentation states -- modules are hierarchical in nature (parent / child relationship). If you have a listener named "foo" in the base application (parent) and a listener named "foo" in a module (child) and call a method on the "foo" listener in the context of the module, you will get the "foo" listener from the module. > If you want to use filters or listeners from the main application, you > can refer to them directly within the XML config for your module. This > may break an idea of encapsulation, but I've done it when the modules > were really an organizational tool to make the app as a whole more > manageable, and I don't intend to ever run the modules as standalone, > re-distributable apps. > Technically you're not really breaking encapsulation because it really depends if your module is an *independent* module or a *sub-application* that depends on the parent context for certain things. If it is truly to be an *independent* module, then of course it breaks encapsulation unless it's a known dependency. Modules are more about required dependencies in this case. There of case are module overrides available so you can inject / override dependencies on configuration of the module. It's not on the wiki yet, but there is a discussion of it on the Google Group in regards to MachBlog.
.Peter --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to Mach-II for CFML list. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/mach-ii-for-coldfusion?hl=en SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/ Wiki / Documentation / Tickets: http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/ -~----------~----~----~----~------~----~------~--~---
