> Do default handlers actually do anything?
Right now, no they don't, I need to noodle the design to make sure there's nothing that it would be usefull to inherit > Why not using functions or a List[(String) => Any] (Instead of String > you may pass any type so the function signature is not so important). > This is a paradigm used in Lift a lot. I can't say I'm familiar with that syntax? (well, what it's actually doing). Might you be able to explain a little? I want to build it so that users can execute any code they wish upon a different event from paypal. Cheers Tim > > > Br's, > Marius > > On Oct 16, 1:36 pm, Tim Perrett <[EMAIL PROTECTED]> wrote: >> Hey guys, >> >> Im just implementing the IPN stuff for paypal and had a quick >> question. I think it would be cool to write something like: >> >> PaypalIPNHandler( >> ).onFailure(FailureHandler).onVerified(VerifiedHandler) >> >> object FailureHandler { ... } // or case class etc >> object VerifiedHandler { ... } >> >> Im thinking of this so that then users can subclass the default >> handlers and get all the functionality / processing that comes as >> default, but then lets them customise so they can update the database >> or whatever they want to do with that information. >> >> So, my question is this: is this a good idea? Any drawbacks in doing >> this? >> >> Cheers >> >> Tim > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---