On 2004-09-23, Drew Taylor <[EMAIL PROTECTED]> wrote: > > Has anyone thought of using Class::Trigger to handle the cgiapp_* > hooks? Class::DBI uses this module for it's triggers. The downside is > that it doesn't (currently) support running triggers is a particular > order. I imagine that it could be added if someone had the need. I > haven't thought much through the implications of this change, but once > you get over the API changes it could make it much easier to add > additional code that runs at each hook.
I hadn't, but after looking at it, it seems a good idea. It seems like exactly the same concept, except that it's abstracted out to another module. It does require the some of the same kind of code modifications to CGI::App. I think you may be on the right track in terms of looking for a more generalized solution for this. Here's another stab at the same thing, which doesn't require code modifications to the class being Hooked onto: http://search.cpan.org/~muenalan/Hook-Heckle-0.01.01/Heckle.pm And another: http://search.cpan.org/~dconway/Hook-LexWrap-0.20/lib/Hook/LexWrap.pm I would be interested to see how well something like these solutions works as an alternative. Mark -- . . . . . . . . . . . . . . . . . . . . . . . . . . . Mark Stosberg Principal Developer [EMAIL PROTECTED] Summersault, LLC 765-939-9301 ext 202 database driven websites . . . . . http://www.summersault.com/ . . . . . . . . --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
