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.Modifier and Type | Method and Description |
---|---|
Iterable<ListenerInvoker> |
transformAll(Iterable<ListenerInvoker> invokers,
Object event)
Takes a collection of
ListenerInvokers and returns a potentially transformed version of
these. |
@Nonnull Iterable<ListenerInvoker> transformAll(@Nonnull Iterable<ListenerInvoker> invokers, @Nonnull Object event)
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.
invokers
- the collection of ListenerInvokers
to invokeevent
- the event the supplied invokers were to be dispatched to and the returned invokers will be
dispatched toListenerInvokers
Copyright © 2006-2016 Atlassian. All Rights Reserved.