예제 #1
0
 /**
  * deleteCapsdInfo
  *
  * @param name a {@link java.lang.String} object.
  */
 public void deleteCapsdInfo(String name) {
   if (capsdProtocols.get(name) != null) {
     ProtocolPlugin tmpproto = capsdProtocols.get(name);
     capsdProtocols.remove(name);
     pluginColl = capsdProtocols.values();
     capsdColl.remove(tmpproto);
     capsdConfig.setProtocolPluginCollection(new ArrayList<ProtocolPlugin>(pluginColl));
   }
 }
예제 #2
0
 /** initCapsdProtocols */
 public void initCapsdProtocols() {
   pluginColl = capsdConfig.getProtocolPluginCollection();
   if (pluginColl != null) {
     for (ProtocolPlugin plugin : pluginColl) {
       capsdColl.add(plugin);
       capsdProtocols.put(plugin.getProtocol(), plugin);
     }
   }
 }