The default implementation of {@link IoFilterChainBuilder} which is usefulin most cases. {@link DefaultIoFilterChainBuilder} has an identical interfacewith {@link IoFilter}; it contains a list of {@link IoFilter}s that you can modify. The {@link IoFilter}s which are added to this builder will be appended to the {@link IoFilterChain} when {@link #buildFilterChain(IoFilterChain)} isinvoked.
However, the identical interface doesn't mean that it behaves in an exactly same way with {@link IoFilterChain}. {@link DefaultIoFilterChainBuilder}doesn't manage the life cycle of the {@link IoFilter}s at all, and the existing {@link IoSession}s won't get affected by the changes in this builder. {@link IoFilterChainBuilder}s affect only newly created {@link IoSession}s.
IoAcceptor acceptor = ...; DefaultIoFilterChainBuilder builder = acceptor.getFilterChain(); builder.addLast( "myFilter", new MyFilter() ); ...
@author The Apache MINA Project (dev@mina.apache.org)
@version $Rev: 594846 $, $Date: 2007-11-14 13:03:07 +0100 (Wed, 14 Nov 2007) $
@org.apache.xbean.XBean