Hello there,
i wonder if there are plans to allow developers to use lambdas/method references for requestfactory.
my idea was that there could be some overloaded versions of fire(Receiver<T>) and to(Receiver<T>) that accept 1-3 lamdbas (4 if the deprecated onViolation should be supported here too).
e.g
fire(Receiver<T>) // the original
fire(SuccessReceiver<T>) // only the success callback
fire(SuccessReceiver<T>, FailureReceiver) // the success + failure callback
fire(SuccessReceiver<T>, ConstraintViolationReceiver) // the success + ConstraintViolation callback
fire(SuccessReceiver<T>, FailureReceiver, ConstraintViolationReceiver) // the success + failure + ConstraintViolation callback
same for to() of course.
the implementation could be something like: all lambda supporting methods call the one with the Receiver parameter with an assembled Receiver that forwards its calls to the corresponding lambda.