From 7d40d47270eff29c06c2c086b51a4335c0286b70 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Fri, 15 Jan 2010 00:47:29 +0000 Subject: [PATCH] Explicitly stated that a user can create many bootstraps with the same ChannelFactory --- src/main/java/org/jboss/netty/bootstrap/ClientBootstrap.java | 5 +++-- .../org/jboss/netty/bootstrap/ConnectionlessBootstrap.java | 5 +++-- src/main/java/org/jboss/netty/bootstrap/ServerBootstrap.java | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/jboss/netty/bootstrap/ClientBootstrap.java b/src/main/java/org/jboss/netty/bootstrap/ClientBootstrap.java index 0074ee55c1..615f953443 100644 --- a/src/main/java/org/jboss/netty/bootstrap/ClientBootstrap.java +++ b/src/main/java/org/jboss/netty/bootstrap/ClientBootstrap.java @@ -99,8 +99,9 @@ import org.jboss.netty.channel.Channels; * manages any resources. What manages the resources is the * {@link ChannelFactory} implementation you specified in the constructor of * {@link ClientBootstrap}. Therefore, it is OK to create as many - * {@link ClientBootstrap} instances as you want to apply different settings - * for different {@link Channel}s. + * {@link ClientBootstrap} instances as you want with the same + * {@link ChannelFactory} to apply different settings for different + * {@link Channel}s. * * @author The Netty Project (netty-dev@lists.jboss.org) * @author Trustin Lee (trustin@gmail.com) diff --git a/src/main/java/org/jboss/netty/bootstrap/ConnectionlessBootstrap.java b/src/main/java/org/jboss/netty/bootstrap/ConnectionlessBootstrap.java index 8bd747e969..17b3d1ea7e 100644 --- a/src/main/java/org/jboss/netty/bootstrap/ConnectionlessBootstrap.java +++ b/src/main/java/org/jboss/netty/bootstrap/ConnectionlessBootstrap.java @@ -108,8 +108,9 @@ import org.jboss.netty.channel.Channels; * allocates nor manages any resources. What manages the resources is the * {@link ChannelFactory} implementation you specified in the constructor of * {@link ConnectionlessBootstrap}. Therefore, it is OK to create as - * many {@link ConnectionlessBootstrap} instances as you want to apply - * different settings for different {@link Channel}s. + * many {@link ConnectionlessBootstrap} instances as you want with the same + * {@link ChannelFactory} to apply different settings for different + * {@link Channel}s. * * @author The Netty Project (netty-dev@lists.jboss.org) * @author Trustin Lee (trustin@gmail.com) diff --git a/src/main/java/org/jboss/netty/bootstrap/ServerBootstrap.java b/src/main/java/org/jboss/netty/bootstrap/ServerBootstrap.java index d47f3e6c54..0fefcf5460 100644 --- a/src/main/java/org/jboss/netty/bootstrap/ServerBootstrap.java +++ b/src/main/java/org/jboss/netty/bootstrap/ServerBootstrap.java @@ -151,8 +151,9 @@ import org.jboss.netty.channel.StaticChannelPipeline; * manages any resources. What manages the resources is the * {@link ChannelFactory} implementation you specified in the constructor of * {@link ServerBootstrap}. Therefore, it is OK to create as many - * {@link ServerBootstrap} instances as you want to apply different settings - * for different {@link Channel}s. + * {@link ServerBootstrap} instances as you want with the same + * {@link ChannelFactory} to apply different settings for different + * {@link Channel}s. * * @author The Netty Project (netty-dev@lists.jboss.org) * @author Trustin Lee (trustin@gmail.com)