public class ChannelManagerImpl extends Object implements org.exoplatform.commons.api.notification.channel.ChannelManager, org.picocontainer.Startable
| Constructor and Description |
|---|
ChannelManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.exoplatform.commons.api.notification.channel.AbstractChannel |
getChannel(org.exoplatform.commons.api.notification.model.ChannelKey key) |
List<org.exoplatform.commons.api.notification.channel.AbstractChannel> |
getChannels() |
org.exoplatform.commons.api.notification.lifecycle.AbstractNotificationLifecycle |
getLifecycle(org.exoplatform.commons.api.notification.model.ChannelKey key) |
void |
register(org.exoplatform.commons.api.notification.channel.AbstractChannel channel)
Register new channel
|
void |
registerOverrideTemplateProvider(org.exoplatform.commons.api.notification.channel.template.TemplateProvider provider)
Register and override the template provider
|
void |
registerTemplateProvider(org.exoplatform.commons.api.notification.channel.template.TemplateProvider provider)
Register the template provider
|
int |
sizeChannels()
Gets size of channels has been registered
|
void |
start() |
void |
stop() |
void |
unregister(org.exoplatform.commons.api.notification.channel.AbstractChannel channel)
Unregister the specified channel
|
public void register(org.exoplatform.commons.api.notification.channel.AbstractChannel channel)
register in interface org.exoplatform.commons.api.notification.channel.ChannelManagerchannel - public void unregister(org.exoplatform.commons.api.notification.channel.AbstractChannel channel)
unregister in interface org.exoplatform.commons.api.notification.channel.ChannelManagerchannel - public void registerTemplateProvider(org.exoplatform.commons.api.notification.channel.template.TemplateProvider provider)
registerTemplateProvider in interface org.exoplatform.commons.api.notification.channel.ChannelManagerprovider - public void registerOverrideTemplateProvider(org.exoplatform.commons.api.notification.channel.template.TemplateProvider provider)
registerOverrideTemplateProvider in interface org.exoplatform.commons.api.notification.channel.ChannelManagerprovider - public org.exoplatform.commons.api.notification.channel.AbstractChannel getChannel(org.exoplatform.commons.api.notification.model.ChannelKey key)
getChannel in interface org.exoplatform.commons.api.notification.channel.ChannelManagerpublic org.exoplatform.commons.api.notification.lifecycle.AbstractNotificationLifecycle getLifecycle(org.exoplatform.commons.api.notification.model.ChannelKey key)
getLifecycle in interface org.exoplatform.commons.api.notification.channel.ChannelManagerpublic int sizeChannels()
sizeChannels in interface org.exoplatform.commons.api.notification.channel.ChannelManagerpublic List<org.exoplatform.commons.api.notification.channel.AbstractChannel> getChannels()
getChannels in interface org.exoplatform.commons.api.notification.channel.ChannelManagerpublic void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.StartableCopyright © 2003–2021 eXo Platform SAS. All rights reserved.