Package io.meeds.appcenter.listener
Class ApplicationBadgeWebSocketListener
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin,org.exoplatform.services.listener.ListenerBase<String,String>
@Component
public class ApplicationBadgeWebSocketListener
extends org.exoplatform.services.listener.Listener<String,String>
Carries a badge invalidation to the browser. Pure glue: it holds no business
logic and only delegates.
Going through the event bus rather than calling the WebSocket service inline is what makes the ordering structural — the cache eviction has necessarily completed before this listener can run — and it lets other domains observe badge changes without App Center knowing about them.
-
Field Summary
Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.services.listener.ListenerBase
getName
-
Constructor Details
-
ApplicationBadgeWebSocketListener
public ApplicationBadgeWebSocketListener()
-
-
Method Details
-
init
@PostConstruct public void init() -
onEvent
- Throws:
Exception
-