Class ChannelEventListenerRegistry
- java.lang.Object
-
- org.onehippo.cms7.services.WhiteboardServiceRegistry<Object>
-
- org.hippoecm.hst.pagecomposer.jaxrs.api.ChannelEventListenerRegistry
-
public final class ChannelEventListenerRegistry extends WhiteboardServiceRegistry<Object>
Singleton registry for decoupled/wring lookup/wiring of listeners that handle using the Whiteboard Pattern.HST site webapp may want to subscribe
BaseChannelEvent
s from the Channel Manager. In that case, you should implement a listener class annotated withSubscribe
and register the listener instance throughChannelEventListenerRegistry.register(listener);
.Note: Also, you should unregister the listener when the listener is not needed any more (e.g. your site webapp getting stopped or undeployed) through
ChannelEventListenerRegistry.unregister(listener);
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ChannelEventListenerRegistry
get()
-
Methods inherited from class org.onehippo.cms7.services.WhiteboardServiceRegistry
addTracker, getEntries, getEntriesList, register, removeTracker, size, unregister
-
-
-
-
Method Detail
-
get
public static ChannelEventListenerRegistry get()
-
-