directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ersin Er <ersin...@gmail.com>
Subject Re: [mina] Introducing the New API for 0.9.1.
Date Sun, 22 Jan 2006 18:06:42 GMT
Hi,

On 1/22/06, Trustin Lee <trustin@gmail.com> wrote:
> Hi all,
>
> I refactored MINA API very heavily this weekend, and now it's time to show
> the result to you.  Please feel free to browse my branch here:
> * No more transport-type specific property getters and setters.  Now we use
> IoAddress properties and the user-defined attributes in IoSession.  For
> example:
>
> ex1) IoService.bind(
> "nio:socket:*:8080?reuseAddress=true&threadModel=normal&threadPoolSize=20&receiveBufferSize=4096",
> new MyHandler() );
> ex2) session.setAttribute( "receiveBufferSize", new Integer( 2048 ) );  //
> org.apache.mina.common.RuntimeIOException will be thrown if
> this operation fails.

I really favor typesafe operations to string based ones. However as I
see the new API uses more string based configuration.

> Please feel free to criticize these changes.  We're very open to your
> feedback.  More feedback, better API! :)

--
Ersin
Mime
View raw message