public final class ChannelEventListenerRegistry extends WhiteboardServiceRegistry<Object>
HST site webapp may want to subscribe BaseChannelEvent
s 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);
Modifier and Type | Method and Description |
---|---|
static ChannelEventListenerRegistry |
get() |
addTracker, getEntries, getEntriesList, register, removeTracker, size, unregister
public static ChannelEventListenerRegistry get()
Copyright © 2008–2021 Hippo B.V. (http://www.onehippo.com). All rights reserved.