directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trustin Lee <>
Subject [mina] Summary of today's changes
Date Mon, 02 May 2005 07:12:57 GMT

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

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,
what we call human nature is actually human habit

View raw message