You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Trustin Lee <tr...@gmail.com> on 2005/05/02 09:12:57 UTC

[mina] Summary of today's changes

Hi,

1) SessionInitializer is replaced with IoHandler.sessionCreated() and
ProtocolHandler.sessionCreated()

DefaultSessionInitializer is also removed.  But all socket parameters
are set by default in IoHandlerAdapter.sessionCreated() and
ProtocolHandlerAdapter.sessionCreated() so that you don't need to set
them manually.

The change is because ProtocolSession is not passes to
SessionInitializer and passing both IoSession and ProtocolSession to
the same initializer looks wierd.

2) All logs use JDK 1.4 Logger.

DefaultExceptionMonitor now uses JDK 1.4 logger.  I decided not to use
any reflection API or old System.out because JDK 1.4 logger does its
job good.  If you're using log4j or any other logger, you'll have to
create adapting bridge like
as commons-loogging do.

2) IoLoggingFilter and ProtocolLoggingFilter is added.

This filters also use JDK 1.4 logger.  You can adjust log level and
prefix by adjusting session attributes.  All examples uses logging
filter now. :)

3) All filter and handler methods can throw checked exceptions.

It was a pain to put try-catch blocks in our handler methods.  I changed all
handler and filter methods so that they can throw any exceptions.

Thank you,
Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/