Class PayaraNotificationFactory


  • @Service
    public class PayaraNotificationFactory
    extends Object
    Factory for building PayaraNotification events.
    Since:
    4.1.2.171
    Author:
    mertcaliskan
    • Constructor Detail

      • PayaraNotificationFactory

        public PayaraNotificationFactory()
    • Method Detail

      • buildNotificationEvent

        public PayaraNotification buildNotificationEvent​(String subject,
                                                         String message)
        Creates a NotificationEvent
        Parameters:
        subject - Subject of the message i.e. what the subject line is if the event is sent to the Javamail notifier
        message - The message text of the event
        Returns:
        the resulting NotificationEvent
      • buildNotificationEvent

        public PayaraNotification buildNotificationEvent​(Level level,
                                                         String subject,
                                                         String message,
                                                         Object[] parameters)
        Creates a NotificationEvent
        Parameters:
        level - Severity level of notification. This is unused in the base factory
        subject - Subject of the message i.e. what the subject line is if the event is sent to the Javamail notifier
        message - The message text of the event
        parameters - An additional parameters to be formatted as part of the message
        Returns:
        the resulting NotificationEvent