public abstract class NotificationConfig<N extends ServerNotification,L extends ServerNotificationListener<N>>
extends org.mule.runtime.api.meta.AbstractAnnotatedObject
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 ServerNotification,L extends ServerNotificationListener<N>> |
static class |
NotificationConfig.EnabledNotificationConfig<N extends ServerNotification,L extends ServerNotificationListener<N>> |
| Modifier and Type | Field and Description |
|---|---|
static Map<String,Class<? extends ServerNotification>> |
EVENT_MAP |
static Map<String,Class<? extends ServerNotificationListener>> |
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 ServerNotification>> EVENT_MAP
public static final Map<String,Class<? extends ServerNotificationListener>> INTERFACE_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–2017 MuleSoft, Inc.. All rights reserved.