Interface InvokerTransformer


public interface InvokerTransformer
Transforms a collection of ListenerInvokers into another collection of ListenerInvokers before they are dispatched. This may give implementing classes the opportunity to, among other things, batch up the asynchronous invokers or perform other interesting transformations.
  • Method Details

    • transformAll

      @Nonnull Iterable<ListenerInvoker> transformAll(@Nonnull Iterable<ListenerInvoker> invokers, @Nonnull Object event)
      Takes a collection of ListenerInvokers and returns a potentially transformed version of these.

      The only on the returned collection is that it must be non-null. It may have the same, a greater number or smaller number of elements than the supplied collection and it may contain the original elements or completely new elements or a combination of both.

      Parameters:
      invokers - the collection of ListenerInvokers to invoke
      event - the event the supplied invokers were to be dispatched to and the returned invokers will be dispatched to
      Returns:
      the potentially transformed collection of ListenerInvokers