@Test public void testSetConfiguration() throws Throwable { ChannelPool channelPool = new ChannelPool(); Configuration cfg = new SimpleConfiguration(); channelPool.setConfiguration(cfg); assertSame(cfg, channelPool.cfg, "channelPool.cfg"); }
public synchronized void setConfiguration (Configuration cfg) throws ConfigurationException { this.cfg = cfg; String channelName[] = cfg.getAll ("channel"); for (String aChannelName : channelName) { try { addChannel(aChannelName); } catch (NameRegistrar.NotFoundException e) { throw new ConfigurationException(e); } } }
ChannelPool implements ISOChannel, LogSource, Configurable, Cloneable { public synchronized void setConfiguration (Configuration cfg) throws ConfigurationException { this.cfg = cfg; String channelName[] = cfg.getAll ("channel"); for (String aChannelName : channelName) { try { addChannel(aChannelName); } catch (NameRegistrar.NotFoundException e) { throw new ConfigurationException(e); } } } }
ChannelPool implements ISOChannel, LogSource, Configurable, Cloneable { public synchronized void setConfiguration (Configuration cfg) throws ConfigurationException { this.cfg = cfg; String channelName[] = cfg.getAll ("channel"); for (String aChannelName : channelName) { try { addChannel(aChannelName); } catch (NameRegistrar.NotFoundException e) { throw new ConfigurationException(e); } } } ChannelPool(); }
ChannelPool implements ISOChannel, LogSource, Configurable, Cloneable { public synchronized void setConfiguration (Configuration cfg) throws ConfigurationException { this.cfg = cfg; String channelName[] = cfg.getAll ("channel"); for (String aChannelName : channelName) { try { addChannel(aChannelName); } catch (NameRegistrar.NotFoundException e) { throw new ConfigurationException(e); } } } ChannelPool(); void setPackager(ISOPackager p); synchronized void connect(); synchronized void disconnect(); synchronized void reconnect(); synchronized boolean isConnected(); ISOMsg receive(); void send(ISOMsg m); void send(byte[] b); void setUsable(boolean b); void setName(String name); String getName(); ISOPackager getPackager(); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); synchronized void setConfiguration(Configuration cfg); void addChannel(ISOChannel channel); void addChannel(String name); void removeChannel(ISOChannel channel); void removeChannel(String name); int size(); synchronized ISOChannel getCurrent(); Object clone(); }
ChannelPool implements ISOChannel, LogSource, Configurable, Cloneable { public synchronized void setConfiguration (Configuration cfg) throws ConfigurationException { this.cfg = cfg; String channelName[] = cfg.getAll ("channel"); for (String aChannelName : channelName) { try { addChannel(aChannelName); } catch (NameRegistrar.NotFoundException e) { throw new ConfigurationException(e); } } } ChannelPool(); void setPackager(ISOPackager p); synchronized void connect(); synchronized void disconnect(); synchronized void reconnect(); synchronized boolean isConnected(); ISOMsg receive(); void send(ISOMsg m); void send(byte[] b); void setUsable(boolean b); void setName(String name); String getName(); ISOPackager getPackager(); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); synchronized void setConfiguration(Configuration cfg); void addChannel(ISOChannel channel); void addChannel(String name); void removeChannel(ISOChannel channel); void removeChannel(String name); int size(); synchronized ISOChannel getCurrent(); Object clone();  }