Class ChannelManagerEventListenerRegistry

java.lang.Object
org.onehippo.cms7.services.WhiteboardProxiedServiceRegistry<ChannelManagerEventListener>
org.hippoecm.hst.configuration.channel.ChannelManagerEventListenerRegistry

public final class ChannelManagerEventListenerRegistry extends WhiteboardProxiedServiceRegistry<ChannelManagerEventListener>
Singleton registry for decoupled/wring lookup/wiring of listeners to the ChannelManagerEvents using the Whiteboard Pattern.

HST site webapp may want to subscribe ChannelManagerEvents from the Channel Manager. In that case, you should implement a ChannelManagerEventListener and register a listener instance through ChannelManagerEventListenerRegistry.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 ChannelManagerEventListenerRegistry.unregister(listener);