Package com.atlassian.event.internal
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 Summary
Modifier and TypeMethodDescriptiontransformAll(Iterable<ListenerInvoker> invokers, Object event) Takes a collection ofListenerInvokersand returns a potentially transformed version of these.
-
Method Details
-
transformAll
@Nonnull Iterable<ListenerInvoker> transformAll(@Nonnull Iterable<ListenerInvoker> invokers, @Nonnull Object event) Takes a collection ofListenerInvokersand 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 ofListenerInvokersto invokeevent- 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
-