On 10/19/06, Trustin Lee <[EMAIL PROTECTED]> wrote:
Now I see your concern. It is because the remote address cannot be changed once connect() is invoked, right? Actually I was thinking of taking advantage of clone() method. You could create a template connector and call clone() whenever you want to create a new instance with the same setting. We you need to do next is to change some properties like remoteAddress and call connect(). It feels like a hack, but it might be better than creating as many factories as the number of IoService implementations, once we migrate to Java 5 and utilize covariant return type. WDYT?
Of course, if clone() is too awkward, we could just use constructors. 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