/** * @param channel * @return */ public bool removeChannel(SocialChannel channel) { bool removed = false; if (this.channels.Contains(channel)) { this.channels.Remove(channel); removed = true; } return removed; }
/** * @param channel * @return */ public bool removeChannel(SocialChannel channel) { bool removed = false; if (this.channels.Contains(channel)) { this.channels.Remove(channel); removed = true; } return(removed); }
/** * Find an appropriate channel according to the properties * * @param channelProperties * @return */ public SocialChannel buildChannel(SocialChannelProperties channelProperties) { // lookup channel by name SocialChannel instance = null; String channelName = channelProperties.getProperty(SocialChannelPropertyKey.NAME); if (channelName != null && this.pluggedChannels.ContainsKey(channelName)) { // Try the cache instance = this.cachedChannels[channelName]; if (instance == null) { instance = instantiateChannel(this.pluggedChannels[channelName]); this.cachedChannels.Add(channelName, instance); } } return(instance); }
/** * @param decoratedChannel */ public void setDecoratedSocialChannel(SocialChannel decoratedChannel) { this.delegateer = decoratedChannel; }
/** * @param channel */ public void addSocialChannel(SocialChannel channel) { this.channels.Add(channel); }
/** * @param i * @param decoratedChannel */ public MessageTruncator(int i, SocialChannel decoratedChannel) { this.maxLength = i; this.delegateer = decoratedChannel; }
/** * @param string * @param channel */ public URLAppender(String url, SocialChannel channel) { this.url = url; this.delegateer = channel; }