public interface NotificationListener<T extends Notification>
| Modifier and Type | Method and Description |
|---|---|
default java.lang.String |
getDescription() |
default java.lang.Class<? extends Notification>[] |
getNotificationTypes() |
void |
onEvent(T notification) |
static <R extends Notification> |
wrap(java.lang.Class<? extends Notification>[] types,
NotificationListener<R> listener) |
static <R extends Notification> |
wrap(java.lang.String description,
NotificationListener<R> listener) |
static <R extends Notification> NotificationListener<R> wrap(java.lang.String description, NotificationListener<R> listener)
static <R extends Notification> NotificationListener<R> wrap(java.lang.Class<? extends Notification>[] types, NotificationListener<R> listener)
default java.lang.Class<? extends Notification>[] getNotificationTypes()
default java.lang.String getDescription()
void onEvent(T notification)