Class ChannelManagerImpl
- java.lang.Object
-
- org.exoplatform.commons.notification.channel.ChannelManagerImpl
-
- All Implemented Interfaces:
org.exoplatform.commons.api.notification.channel.ChannelManager,org.picocontainer.Startable
public class ChannelManagerImpl extends Object implements org.exoplatform.commons.api.notification.channel.ChannelManager, org.picocontainer.Startable
Created by The eXo Platform SAS Author : eXoPlatform thanhvc@exoplatform.com Dec 12, 2014
-
-
Constructor Summary
Constructors Constructor Description ChannelManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.exoplatform.commons.api.notification.channel.AbstractChannelgetChannel(org.exoplatform.commons.api.notification.model.ChannelKey key)List<org.exoplatform.commons.api.notification.channel.AbstractChannel>getChannels()org.exoplatform.commons.api.notification.lifecycle.AbstractNotificationLifecyclegetLifecycle(org.exoplatform.commons.api.notification.model.ChannelKey key)voidregister(org.exoplatform.commons.api.notification.channel.AbstractChannel channel)Register new channelvoidregisterOverrideTemplateProvider(org.exoplatform.commons.api.notification.channel.template.TemplateProvider provider)Register and override the template providervoidregisterTemplateProvider(org.exoplatform.commons.api.notification.channel.template.TemplateProvider provider)Register the template providerintsizeChannels()Gets size of channels has been registeredvoidstart()voidstop()voidunregister(org.exoplatform.commons.api.notification.channel.AbstractChannel channel)Unregister the specified channel
-
-
-
Method Detail
-
register
public void register(org.exoplatform.commons.api.notification.channel.AbstractChannel channel)
Register new channel- Specified by:
registerin interfaceorg.exoplatform.commons.api.notification.channel.ChannelManager- Parameters:
channel-
-
unregister
public void unregister(org.exoplatform.commons.api.notification.channel.AbstractChannel channel)
Unregister the specified channel- Specified by:
unregisterin interfaceorg.exoplatform.commons.api.notification.channel.ChannelManager- Parameters:
channel-
-
registerTemplateProvider
public void registerTemplateProvider(org.exoplatform.commons.api.notification.channel.template.TemplateProvider provider)
Register the template provider- Specified by:
registerTemplateProviderin interfaceorg.exoplatform.commons.api.notification.channel.ChannelManager- Parameters:
provider-
-
registerOverrideTemplateProvider
public void registerOverrideTemplateProvider(org.exoplatform.commons.api.notification.channel.template.TemplateProvider provider)
Register and override the template provider- Specified by:
registerOverrideTemplateProviderin interfaceorg.exoplatform.commons.api.notification.channel.ChannelManager- Parameters:
provider-
-
getChannel
public org.exoplatform.commons.api.notification.channel.AbstractChannel getChannel(org.exoplatform.commons.api.notification.model.ChannelKey key)
- Specified by:
getChannelin interfaceorg.exoplatform.commons.api.notification.channel.ChannelManager
-
getLifecycle
public org.exoplatform.commons.api.notification.lifecycle.AbstractNotificationLifecycle getLifecycle(org.exoplatform.commons.api.notification.model.ChannelKey key)
- Specified by:
getLifecyclein interfaceorg.exoplatform.commons.api.notification.channel.ChannelManager
-
sizeChannels
public int sizeChannels()
Gets size of channels has been registered- Specified by:
sizeChannelsin interfaceorg.exoplatform.commons.api.notification.channel.ChannelManager- Returns:
-
getChannels
public List<org.exoplatform.commons.api.notification.channel.AbstractChannel> getChannels()
- Specified by:
getChannelsin interfaceorg.exoplatform.commons.api.notification.channel.ChannelManager
-
start
public void start()
- Specified by:
startin interfaceorg.picocontainer.Startable
-
stop
public void stop()
- Specified by:
stopin interfaceorg.picocontainer.Startable
-
-