Hello guys.
I'm starting to integrate notifiers in our instance of SBA and, apart some fights over the application context regarding the registration time of the beans (composition/delegation/decorator doesn't really work currently due to order of creation of the beans), I realized that some notifiers are inconsistent in terms of when they should trigger a notification.
In particular, the MicrosoftTeamsNotifier is extending AbstractStatusChangeNotifier but then it's ignoring the fact (by overriding shouldNotify) that it should be dealing only with status updates and it's handling all of them.
Is this intentional? Why not extending AbstractEventNotifier instead then?
From the other end, assuming that's correct and that it should handle all the events, why MailNotifier doesn't do the same then and it deals, instead, only with status changes?
Finally, https://github.com/codecentric/spring-boot-admin/blob/master/spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/notify/AbstractEventNotifier.java#L34 should be protected in my opinion.
At the moment, I'm forced to store it once more in a field to have access to it even if it's already available in the parent class.
Hello guys.
I'm starting to integrate notifiers in our instance of SBA and, apart some fights over the application context regarding the registration time of the beans (composition/delegation/decorator doesn't really work currently due to order of creation of the beans), I realized that some notifiers are inconsistent in terms of when they should trigger a notification.
In particular, the MicrosoftTeamsNotifier is extending AbstractStatusChangeNotifier but then it's ignoring the fact (by overriding shouldNotify) that it should be dealing only with status updates and it's handling all of them.
Is this intentional? Why not extending AbstractEventNotifier instead then?
From the other end, assuming that's correct and that it should handle all the events, why MailNotifier doesn't do the same then and it deals, instead, only with status changes?
Finally, https://github.com/codecentric/spring-boot-admin/blob/master/spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/notify/AbstractEventNotifier.java#L34 should be protected in my opinion.
At the moment, I'm forced to store it once more in a field to have access to it even if it's already available in the parent class.