Class NotificationsAutoConfiguration

java.lang.Object
su.onno.ui.notifications.NotificationsAutoConfiguration

@AutoConfiguration(after=UiAutoConfiguration.class) @ConditionalOnWebApplication(type=SERVLET) @ConditionalOnBean({MetadataRegistry.class,FieldHintResolver.class,UiEventPublisher.class}) @EnableConfigurationProperties(NotificationProperties.class) @ConditionalOnProperty(prefix="onno.notifications", name="enabled", havingValue="true", matchIfMissing=true) public class NotificationsAutoConfiguration extends Object
Wires the /api/notifications per-user notification timeline, its NotificationStore, the NotificationService delivery hub, and the onno.notifications.* configuration. Gated on a servlet web app and onno.notifications.enabled (default true), and runs after UiAutoConfiguration so the UiEventPublisher (SSE fan-out), CurrentUserResolver (recipient identity), and ClusterEventBus (cross-node relay) it builds on already exist — the same layering the comments feature uses. Storage is the framework-owned onno_notifications table the store creates on startup; there is no app metadata to model.

The built-in producers (MentionNotificationSource, AssignmentNotificationSource, ReplyNotificationSource) are each gated by their own sub-flag so an app can keep the panel while turning a source off.