public class NotificationListenerManager extends Object
Modifier and Type | Field and Description |
---|---|
static String |
KIE_LISTENER_EXCLUDE |
static String |
KIE_LISTENER_INCLUDE |
Modifier and Type | Method and Description |
---|---|
void |
broadcast(org.kie.internal.task.api.model.NotificationEvent event,
org.kie.internal.task.api.UserInfo userInfo)
Broadcast given event to all listeners independently meaning catches possible exceptions to
avoid breaking notification by listeners
|
static NotificationListenerManager |
get() |
List<NotificationListener> |
getNotificationListeners() |
static Optional<List<String>> |
propertyToList(String propertyName) |
void |
registerAdditionalNotificationListener(List<NotificationListener> additionalNotificationListener) |
void |
reset() |
public static final String KIE_LISTENER_EXCLUDE
public static final String KIE_LISTENER_INCLUDE
public void reset()
public void registerAdditionalNotificationListener(List<NotificationListener> additionalNotificationListener)
public List<NotificationListener> getNotificationListeners()
public void broadcast(org.kie.internal.task.api.model.NotificationEvent event, org.kie.internal.task.api.UserInfo userInfo)
event
- notification event to be sentparams
- additional parameters see NotificationListener.onNotification for details.NotificationListener#onNotification(NotificationEvent, Object...)
public static NotificationListenerManager get()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.