Just been nooding this somemore, and one thing I cant seem to figure is why / how this is better than supplying a list of custom subclasses that implement a supplied abstract class?
Just been having a play with some ideas, and how does your suggestion improve upon something like this: https://gist.github.com/9df3baee3793b750e42e It goes without saying that this is *just an example* and the execute method of my abstract class would do something significantly more usefull! lol. Cheers Tim On Oct 18, 4:30 pm, Tim Perrett <[EMAIL PROTECTED]> wrote: > Hey Marius, > > Ok, so i've been putting this together, and have the following: > > case class PaypalEventAction(status: PaypalTransactionStatus, > functions: List[() => PaypalActionHandler]) > > So, when I then create a subclass for PaypalActionHandler which I > create a new instance of like: > > case class SecondPendingHandler extends PaypalActionHandler { > println("FFDGDFGDF") > > } > > PaypalEventAction(PendingPayment, List( > SecondPendingHandler() > )) > > Then I get this error: > > found : this.SecondPendingHandler > required: () => this.PaypalActionHandler > PaypalEventAction(PendingPayment, List( SecondPendingHandler() ) ) > > What i want to do is have my PaypalIPN class have a list of > PaypalEventAction and then operate on that internal list so that I can > filter the list depending on the resultant action from paypal. > > Any pointers on why this is bombing would be a great help > > 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 -~----------~----~----~----~------~----~------~--~---