Hey Tim,

Do default handlers actually do anything?

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.

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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to