public abstract class NotificationConfig<N extends org.mule.runtime.api.notification.Notification,L extends org.mule.runtime.api.notification.NotificationListener<N>>
extends org.mule.runtime.api.component.AbstractComponent
For now we create specific types Notification.EnabledNotification and Notification.DisabledNotification for
elements that have children of the same type but that must be injected in different collections of the parent object. Ideally
this should not be needed or we don't have to support such use case anymore but for previous elements coming from previous mule
version we have to keep the XML syntax as it is.
| Modifier and Type | Class and Description |
|---|---|
static class |
NotificationConfig.DisabledNotificationConfig<N extends org.mule.runtime.api.notification.Notification,L extends org.mule.runtime.api.notification.NotificationListener<N>> |
static class |
NotificationConfig.EnabledNotificationConfig<N extends org.mule.runtime.api.notification.Notification,L extends org.mule.runtime.api.notification.NotificationListener<N>> |
| Modifier and Type | Field and Description |
|---|---|
static Map<String,Class<? extends org.mule.runtime.api.notification.Notification>> |
EVENT_MAP |
static Map<String,Class<? extends org.mule.runtime.api.notification.NotificationListener>> |
INTERFACE_MAP |
| Constructor and Description |
|---|
NotificationConfig() |
NotificationConfig(Class<L> interfaceClass,
Class<N> eventClass) |
| Modifier and Type | Method and Description |
|---|---|
Class<N> |
getEventClass() |
String |
getEventName() |
Class<L> |
getInterfaceClass() |
String |
getInterfaceName() |
boolean |
isEventExplicitlyConfigured() |
boolean |
isInterfaceExplicitlyConfigured() |
void |
setEventClass(Class<N> eventClass) |
void |
setEventName(String eventName) |
void |
setInterfaceClass(Class<L> interfaceClass) |
void |
setInterfaceName(String interfaceName) |
public static final Map<String,Class<? extends org.mule.runtime.api.notification.Notification>> EVENT_MAP
public void setInterfaceName(String interfaceName)
public String getInterfaceName()
public void setEventName(String eventName)
public String getEventName()
public boolean isEventExplicitlyConfigured()
public boolean isInterfaceExplicitlyConfigured()
Copyright © 2003–2024 MuleSoft, Inc.. All rights reserved.