📄 iccregistry.java
字号:
package org.jasig.portal;/** * A proxy class that allows channels to contribute to inter channel * communication registry. * * @author <a href="mailto:pkharchenko@interactivebusiness.com">Peter Kharchenk</a> * @version $Revision: 1.1 $ */public class ICCRegistry { private ChannelManager cm; private String currentChannelSubscribeId; /** * Creates a new <code>IICRegistry</code> instance. * * @param cm a <code>ChannelManager</code> value * @param currentChannelSubscribeId a <code>String</code> value */ public ICCRegistry(ChannelManager cm,String currentChannelSubscribeId) { this.cm=cm; this.currentChannelSubscribeId=currentChannelSubscribeId; } /** * Add a listener channel * * @param channelSubscribeId a <code>String</code> value */ public void addListenerChannel(String channelSubscribeId) { cm.registerChannelDependency(channelSubscribeId,this.currentChannelSubscribeId); } /** * Remove a listener channel * * @param channelSubscribeId a <code>String</code> value */ public void removeListenerChannel(String channelSubscribeId) { cm.removeChannelDependency(channelSubscribeId,this.currentChannelSubscribeId); } /** * Add an instructor channel (to which the current channel will listen) * * @param channelSubscribeId a <code>String</code> value */ public void addInstructorChannel(String channelSubscribeId) { cm.registerChannelDependency(this.currentChannelSubscribeId,channelSubscribeId); } /** * Remove an instructor channel * * @param channelSubscribeId a <code>String</code> value */ public void removeInstructorChannel(String channelSubscribeId){ cm.removeChannelDependency(this.currentChannelSubscribeId,channelSubscribeId); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -