oracle.panama.util
Class NotificationDispatcherImpl

java.lang.Object
  |
  +--oracle.panama.util.NotificationDispatcherImpl
All Implemented Interfaces:
NotificationListener

public class NotificationDispatcherImpl
extends java.lang.Object
implements NotificationListener

The notification dispatcher is to be loaded by the system and processes all incoming messages.

The current implementation handles both SMSC and EMAIL notifications. The mapping to the correct repository name is done in the "Notification.properites" file, where specific parameters for each device is located.

Since:
PANAMA_10

Method Summary
TypeMethod
 java.lang.String getEmailName()
          Returns the name of the EMAIL address type.
static NotificationListener getInstance()
          The only way to instansiate this object.
 java.lang.String getSmsName()
          Returns the name of the SMS address type.
 void onMessage(NotificationEvent event)
          Processes one event.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static NotificationListener getInstance()
The only way to instansiate this object. is done by the system itself

getEmailName

public java.lang.String getEmailName()
Description copied from interface: NotificationListener
Returns the name of the EMAIL address type.

This property/parameter is set in the notification domain.

Specified by:
getEmailName in interface NotificationListener
Following copied from interface: oracle.panama.util.NotificationListener
Returns:
the name.

getSmsName

public java.lang.String getSmsName()
Description copied from interface: NotificationListener
Returns the name of the SMS address type.

This property/parameter is set in the notification domain.

Specified by:
getSmsName in interface NotificationListener
Following copied from interface: oracle.panama.util.NotificationListener
Returns:
the name.

onMessage

public void onMessage(NotificationEvent event)
               throws PanamaException
Description copied from interface: NotificationListener
Processes one event.
Specified by:
onMessage in interface NotificationListener
Following copied from interface: oracle.panama.util.NotificationListener
Parameters:
event - the notification event.
Throws:
PanamaException - on any kind of error.