Package edu.ucsb.cs156.courses.services
Class SystemMessagesService
java.lang.Object
edu.ucsb.cs156.courses.services.SystemMessagesService
Holds system messages (e.g. startup misconfiguration warnings) for the lifetime of the running
process. Deliberately in-memory rather than persisted: a
@Service bean is a Spring
singleton by default, so this naturally starts empty on every process start with no explicit
"clear on startup" step required, and -- should this app ever run multiple instances -- each
instance reports its own diagnostics rather than a shared table conflating them.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SystemMessagesService
public SystemMessagesService()
-
-
Method Details
-
addMessage
-
getMessages
-