public interface NotificationFactory
NotificationMessage| Modifier and Type | Method and Description |
|---|---|
java.util.Collection |
getNotification(java.lang.Object context)
Returns collection of notification messages based on the given context.
|
java.util.Collection getNotification(java.lang.Object context)
context - The runtime context associated with the notification.
Depending on the situation where the factory is called, the
context object may be a different class. The factory should
know the situation where it will be used and downcast the
context object accordingly. For example, for workflow
notifications, the platform will pass a different object than
when a lost password is sent.
The context is an object of WorkflowNotificationContext interface.