@Service public class PayaraNotificationFactory extends Object
PayaraNotification events.| Constructor and Description |
|---|
PayaraNotificationFactory() |
| Modifier and Type | Method and Description |
|---|---|
PayaraNotification |
buildNotificationEvent(Level level,
String subject,
String message,
Object[] parameters)
Creates a
NotificationEvent |
PayaraNotification |
buildNotificationEvent(String subject,
String message)
Creates a
NotificationEvent |
PayaraNotificationBuilder |
newBuilder() |
public PayaraNotification buildNotificationEvent(String subject, String message)
NotificationEventsubject - Subject of the message
i.e. what the subject line is if the event is sent to the Javamail notifiermessage - The message text of the eventNotificationEventpublic PayaraNotification buildNotificationEvent(Level level, String subject, String message, Object[] parameters)
NotificationEventlevel - Severity level of notification. This is unused in the base factorysubject - Subject of the message
i.e. what the subject line is if the event is sent to the Javamail notifiermessage - The message text of the eventparameters - An additional parameters to be formatted as part of the messageNotificationEventpublic PayaraNotificationBuilder newBuilder()
Copyright © 2021. All rights reserved.