MockPortletSession.java 文件源码

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

项目:spring4-understanding 作者:
@Override
public void setAttribute(String name, Object value, int scope) {
    if (scope == PortletSession.PORTLET_SCOPE) {
        if (value != null) {
            this.portletAttributes.put(name, value);
        }
        else {
            this.portletAttributes.remove(name);
        }
    }
    else if (scope == PortletSession.APPLICATION_SCOPE) {
        if (value != null) {
            this.applicationAttributes.put(name, value);
        }
        else {
            this.applicationAttributes.remove(name);
        }
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号