Interface ChannelManager
public interface ChannelManager
-
Method Summary
Modifier and TypeMethodDescriptiongetChannel(ChannelKey key) Gets the channel by the specified keyGets list of the channelsdefault List<AbstractChannel>This will useAbstractChannel.isDefaultChannel()to determine whether the channel will be enabled for plugins by default or notgetLifecycle(ChannelKey key) Gets the lifecycle by the ChannelKeydefault List<AbstractChannel>This will useAbstractChannel.isDefaultChannel()to determine whether the channel is specific for some plugins or notvoidregister(AbstractChannel channel) Register new channelvoidRegister and override the Template providervoidregisterTemplateProvider(TemplateProvider provider) Register the Template providerintGets size of channels has been registeredvoidunregister(AbstractChannel channel) Unregister the specified channel
-
Method Details
-
register
Register new channel- Parameters:
channel-
-
unregister
Unregister the specified channel- Parameters:
channel-
-
registerTemplateProvider
Register the Template provider- Parameters:
provider-
-
registerOverrideTemplateProvider
Register and override the Template provider- Parameters:
provider-
-
getChannel
Gets the channel by the specified key- Parameters:
key- the channel key- Returns:
-
getChannels
List<AbstractChannel> getChannels()Gets list of the channels- Returns:
-
getDefaultChannels
This will useAbstractChannel.isDefaultChannel()to determine whether the channel will be enabled for plugins by default or not- Returns:
Listof active channels for all plugins by default.
-
getSpecificChannels
This will useAbstractChannel.isDefaultChannel()to determine whether the channel is specific for some plugins or not- Returns:
Listof active channels for specific plugins only.
-
getLifecycle
Gets the lifecycle by the ChannelKey- Parameters:
key-- Returns:
-
sizeChannels
int sizeChannels()Gets size of channels has been registered- Returns:
-