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 BaseChannelEvents from the Channel Manager. In that case, you should implement a listener class annotated with Subscribe and register the listener instance through ChannelEventListenerRegistry.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);