PortletWrappingController.java 文件源码

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

项目:spring4-understanding 作者:
@Override
public void afterPropertiesSet() throws Exception {
    if (this.portletClass == null) {
        throw new IllegalArgumentException("portletClass is required");
    }
    if (!Portlet.class.isAssignableFrom(this.portletClass)) {
        throw new IllegalArgumentException("portletClass [" + this.portletClass.getName() +
            "] needs to implement interface [javax.portlet.Portlet]");
    }
    if (this.portletName == null) {
        this.portletName = this.beanName;
    }
    PortletConfig config = this.portletConfig;
    if (config == null || !this.useSharedPortletConfig) {
        config = new DelegatingPortletConfig();
    }
    this.portletInstance = (Portlet) this.portletClass.newInstance();
    this.portletInstance.init(config);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号