mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niklas Therning <nik...@trillian.se>
Subject Re: Removing some useless interfaces
Date Thu, 19 Jun 2008 09:06:21 GMT
Julien Vermillard skrev:
> On Thu, 19 Jun 2008 10:56:11 +0200
> Niklas Therning <niklas@trillian.se> wrote:
>
>   
>> Ok, you're right, it's a bit overkill to have an interface just to
>> avoid a cast. But SocketService still had its right to exist I think.
>> What if you want to explicitly depend on an IoService which handles
>> socket based transports? Removing SocketService means that one would
>> need to use IoService instead and then do the type checking at
>> runtime rather than at compile time.
>>
>> /Niklas
>>     
>
> You still got SocketAcceptor and SocketConnector, I don't see much
> interest in a general SocketService iface with 2 methods.
>
> I think you  need to depend on a Socket based acceptor or
> connector, not a SocketService no ?
>
> Julien
>   
You're probably right.

/Niklas

Mime
View raw message