開発メモ

開発用のメモです。

Tomcat 7.0 / S2ContainerFilter By seasar2

package jp.mirageworld.crs.filter;

import javax.servlet.DispatcherType;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebFilter;

import org.apache.log4j.Logger;
import org.seasar.framework.container.filter.S2ContainerFilter;

@WebFilter(
        urlPatterns = "/*",
        dispatcherTypes = {
                DispatcherType.REQUEST,
                DispatcherType.FORWARD,
                DispatcherType.INCLUDE,
        },
        filterName = "filter003",
        displayName = "filter003")
public class WebS2ContainerFilter extends S2ContainerFilter {

    protected final Logger logger = Logger.getLogger(getClass());

    @Override
    public void init(FilterConfig config) throws ServletException {
        logger.info(getClass().getSimpleName());
        super.init(config);
    }

}
Twitter: @asahina_alice