When using a lambda in an event payload. Parameter types are lost when resolving observers.
For instance:
@Inject
|
Event<Supplier<String>> stringSupplierEvent;
|
Supplier<String> stringSupplier = () -> "Hello world";
|
stringSupplierEvent.fire(stringSupplier);
|
will triggers an observer of Supplier but not an observer of Supplier<String>
|