@Override
public void init(PortletConfig config) throws PortletException {
super.init(config);
this.templatesPath = config.getInitParameter(INIT_PARAM_TEMPLATES_PATH);
if(this.templatesPath == null) {
throw new PortletException("Templates path not specified in init parameters.");
}
if(!this.templatesPath.endsWith(StringPool.SLASH)) {
this.templatesPath = this.templatesPath.concat(StringPool.SLASH);
}
this.portal = this.getPortal();
this.templateManager = this.getTemplateManager();
try {
this.templateResourceLoader = TemplateResourceLoaderUtil.getTemplateResourceLoader(this.templateManager.getName());
} catch(TemplateException e) {
throw new PortletException(e);
}
}
TemplatedPortlet.java 文件源码
java
阅读 21
收藏 0
点赞 0
评论 0
项目:flashlight-search
作者:
评论列表
文章目录