Class StandardNotificationService
java.lang.Object
dev.getelements.elements.service.notification.StandardNotificationService
- All Implemented Interfaces:
NotificationService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets an instance ofNotificationBuilder
.jakarta.inject.Provider
<NotificationBuilder> void
setCurrentProfileSupplier
(Supplier<Profile> currentProfileSupplier) void
setNotificationBuilderProvider
(jakarta.inject.Provider<NotificationBuilder> notificationBuilderProvider)
-
Constructor Details
-
StandardNotificationService
public StandardNotificationService()
-
-
Method Details
-
getBuilder
Description copied from interface:NotificationService
Gets an instance ofNotificationBuilder
. This includes a pre-configuredNotificationBuilder
with the currentProfile
andApplication
therefore making it only necessary to specify the recipient usingNotificationBuilder.recipient(Profile)
.- Specified by:
getBuilder
in interfaceNotificationService
- Returns:
- the
NotificationBuilder
-
getCurrentProfileSupplier
-
setCurrentProfileSupplier
-
getNotificationBuilderProvider
-
setNotificationBuilderProvider
@Inject public void setNotificationBuilderProvider(jakarta.inject.Provider<NotificationBuilder> notificationBuilderProvider)
-