On Tue, Sep 9, 2008 at 10:26 AM, salomoko <[EMAIL PROTECTED]> wrote: > > I see, > > could you post an example of your "ExampleConfig" so I can grab an > idea? > > The actionpack I'm needing to write is going to only change in two > ways, so that what I was thinking of doing... Writing a config that > tells the app which option to use... > > any thoughts?
Sounds logical, as the Vulcans say.. I can walk you through what I did, basically, and perhaps that will help. Take a look at this: ( http://tinyurl.com/5m2rqf ) http://svn.firemoss.com/modelglue/trunk/modelglueactionpacks/usermanagement/config/ColdSpring.xml Notice how much of the stuff on that page would be the same (assuming you're not heavy into AOP). What /would/ change with every app tho, is the stuff in the UserManagementConfiguration, right? So what I did, was take that bean "config" block out of the ModelGlue.xml file, and created another file, called "ExampleConfig.xml", and put it in there. The idea is that you'd copy this file into your application's config folder, rename it to userauthenticaion.xml (or whatever), and then in your application's ColdSpring.xml, add an import for it. Thus, when you're working on the "core" of your actionpack stuff, you only need to change it's core ColdSpring file, and the changes will be picked up automatically wherever you're using the actionpack, and the per-application settings are left alone. Hope this is clear enough-- I can zip up what I did, if you'd like, but that's pretty much it. :Denny -- A German is someone who cannot tell a lie without believing it himself. Theodor Adorno --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "model-glue" 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/model-glue?hl=en For more about Model-Glue, check http://www.model-glue.com . -~----------~----~----~----~------~----~------~--~---
