|
-1 from me on this. To me that smells too much of J(2)EE and happens to be one of my personal reasons to stay away from anything that requires (custom) deployment descriptors. I'd rather stick with configuration by convention or explicit init calls in Boot.scala. The cost of lift searching through jars is exactly 0 unless you can demonstrate it isn't... :-) (Premature optimization, anyone?) --Andrew Naftoli Gugenheim wrote: What I was suggesting is that instead of having to write Lib.init in Boot, Lift should look in Lib.jar for say /boot.xml which would tell Lift to execute Lib.init for you on startup. I think that would accomplish what you want, at the cost of lift searching through the jars.------------------------------------- Glenn Silverman<[email protected]> wrote: Hi, Naftoli, I assume what you are asking is whether your module should include it's own xml configuration file. I know GWT uses a main configuration file where module entry-points are defined. And modules, themselves can depend on other modules with their own configuration files. You could enforce a rule that all Lift modules contain their own configuration files, along with the main webapp, just for this purpose. I guesss what I am suggesting is some way for modules (jar files) to be distinguished from normal jar files or a complete Lift webapp, in order to standardize and simplify their design and creation. After all, modules that contain reuseable Lift features are different in kind from a Lift application. Glenn... Naftoli Gugenheim wrote:In xml in the library jar? ------------------------------------- glenn<[email protected]> wrote: Tim, Here's a thought. GWT uses <entry-point class="some fully qualified class name" /> to identify and initialize modules. Perhaps something similar could be hooked into LiftFilter and an entry point class identified in web.xml. There should be little objection to xml configuration, as opposed to using Java reflection. Glenn... On Jul 28, 9:36 am, Timothy Perrett <[email protected]> wrote:Glenn, You have my full attention - this is something I've been sitting on for quite some time but just not quite sure what the best route forward is. When im creating these modules, I essentially just build a normal jar project with maven, and as you say, if I have JS or whatever that I need to use I just specify that with ResourceServer (in the module JAR init). To date I've not actually needed to pull a template from another JAR, but looking at ResourceServer.findResourceInClasspath I think it could do it... If memory serves DPP checked in a change to make this work about 2 weeks ago... In terms of having a defined loading pattern, its possible, but would need outlining with some very specific details... IMO, adding one line of code to Boot.scala is not a big deal so we would really need a good reason to add a bunch of reflection which can sometime feel like voodoo because its not clear what its loading and why (one of the reasons I went off ruby). Cheers, tim On 28/07/2009 17:00, "glenn" <[email protected]> wrote: --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. 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/liftweb?hl=en -~----------~----~----~----~------~----~------~--~--- |
- [Lift] Re: Modularization of Lift code Naftoli Gugenheim
- [Lift] Re: Modularization of Lift code Naftoli Gugenheim
- [Lift] Re: Modularization of Lift code Naftoli Gugenheim
- [Lift] Re: Modularization of Lift code Timothy Perrett
- [Lift] Re: Modularization of Lift code Andrew Scherpbier
- [Lift] Re: Modularization of Lift code Naftoli Gugenheim
- [Lift] Re: Modularization of Lift code Naftoli Gugenheim
- [Lift] Re: Modularization of Lift code Ryan Donahue
- [Lift] Re: Modularization of Lift code Timothy Perrett
- [Lift] Re: Modularization of Lift code Heiko Seeberger
- [Lift] Re: Modularization of Lift ... Ryan Donahue
- [Lift] Re: Modularization of L... Heiko Seeberger
- [Lift] Re: Modularization ... Timothy Perrett
- [Lift] Re: Modularization of Lift ... glenn
- [Lift] Re: Modularization of L... Heiko Seeberger
