directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From daune...@daune-consult.com
Subject Re: ProtocolSession attachment
Date Thu, 21 Apr 2005 13:11:16 GMT
Selon Trustin Lee <trustin@gmail.com>:

> Hi,
>
> 2005/4/21, daune.jf@daune-consult.com <daune.jf@daune-consult.com>:
> > Hi all,
> >
> > I have just realized during tests that when IoProtocolAcceptor is used,
> > ProtocolSession attachment is internally used by IoAdapter.
> >
> > I used my own attachment, which lead to a ClassCastException. As I have the
> MINA
> > source code, it was easy to figure out where the error came from. But for a
> > plain user only having JAR, it would have been more difficult.
> >
> > IMHO, making it clear in the documentation is enough.
>
> I added some statements about user-defined attributes in
> IoProtocolAcceptor/Connector JavaDoc.  WDYT?
>
> Thanks,
> Trustin

I would make it clear that attachment is reserved for internal use.

The fact that user-defined attibutes are shared is another point.

Cheers,

J-F



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


Mime
View raw message