Hi all,

Currently, ProtocolEncoder and ProtocolDecoder uses IoSession
user-defined attributes to store their state information.

If what ProtocolEncoder and ProtocolDecoder do with IoSession is just
to access user defined attributes, we could simply remove the coupling
with IoSession and replace it with java.util.Map (or ConcurrentMap).
By doing this, we can make our codecs reusable across various
applications, even that don't use MINA as a network layer.

Please let me know if there's a use case that you access other
properties or operations of IoSession in your codec implementation and
why it's mandatory.

Thanks in advance,
Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6

Reply via email to