PortletPreferencesImpl.java 文件源码

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

项目:portals-pluto 作者:
/**
 * Stores the portlet preferences to a persistent storage. This method
 * should only be invoked within <code>processAction()</code> method.
 * 
 * @see #internalStore()
 * 
 * @throws IllegalStateException  if this method is not invoked within
 *         <code>processAction()</code> method.
 * @throws ValidatorException  if the portlet preferences are not valid.
 * @throws IOException  if an error occurs with the persistence mechanism.
 */
public void store() throws IOException, ValidatorException {
    if (PortletRequest.RENDER_PHASE.equals(request.getAttribute(PortletRequest.LIFECYCLE_PHASE))) {
        throw new IllegalStateException(
                "store is not allowed during RENDER phase.");
    }
    internalStore();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号