ApplicationContextFacade.java 文件源码

java
阅读 40 收藏 0 点赞 0 评论 0

项目:lazycat 作者:
@Override
@SuppressWarnings("unchecked") // doPrivileged() returns the correct type
public <T extends Filter> T createFilter(Class<T> c) throws ServletException {
    if (SecurityUtil.isPackageProtectionEnabled()) {
        try {
            return (T) invokeMethod(context, "createFilter", new Object[] { c });
        } catch (Throwable t) {
            ExceptionUtils.handleThrowable(t);
            if (t instanceof ServletException) {
                throw (ServletException) t;
            }
            return null;
        }
    } else {
        return context.createFilter(c);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号