On 10/19/06, Niklas Therning <[EMAIL PROTECTED]> wrote:
I like this change a lot because (as you've already metioned) it
simplifies configuration a lot, especially when using Spring. My only
concern is that it won't be as straight forward to setup connectors
using Spring. I guess one approach would be to have a factory for each
type of IoConnector. E.g.:
public class SocketConnectorFactory implements IoConnectorFactory {
SocketConnector createConnector(SocketAddress addr);
void setFilters(...);
void setConnectTimeout(...);
... other relevant properties
}
What is the advantage of having a factory for connector? Connector
implementations already provide all properties you can configure.
Besides the connector factory issue, one problem is that one connector can
connect to only one remote address now. It's waste of connector thread and
we need to figure out how to resolve this issue.
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41 4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4 455E 1C62 A7DC 0255 ECA6