Class PayaraNotificationFactory
- java.lang.Object
-
- fish.payara.internal.notification.PayaraNotificationFactory
-
@Service public class PayaraNotificationFactory extends Object
Factory for buildingPayaraNotificationevents.- Since:
- 4.1.2.171
- Author:
- mertcaliskan
-
-
Constructor Summary
Constructors Constructor Description PayaraNotificationFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PayaraNotificationbuildNotificationEvent(String subject, String message)Creates aNotificationEventPayaraNotificationbuildNotificationEvent(Level level, String subject, String message, Object[] parameters)Creates aNotificationEventPayaraNotificationBuildernewBuilder()
-
-
-
Method Detail
-
buildNotificationEvent
public PayaraNotification buildNotificationEvent(String subject, String message)
Creates aNotificationEvent- Parameters:
subject- 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 event- Returns:
- the resulting
NotificationEvent
-
buildNotificationEvent
public PayaraNotification buildNotificationEvent(Level level, String subject, String message, Object[] parameters)
Creates aNotificationEvent- Parameters:
level- 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 message- Returns:
- the resulting
NotificationEvent
-
newBuilder
public PayaraNotificationBuilder newBuilder()
- Returns:
- a builder object used to configure notifiers
-
-