本文整理汇总了Java中javax.faces.view.facelets.ResourceResolver类的典型用法代码示例。如果您正苦于以下问题:Java ResourceResolver类的具体用法?Java ResourceResolver怎么用?Java ResourceResolver使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ResourceResolver类属于javax.faces.view.facelets包,在下文中一共展示了ResourceResolver类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ExternalResourceHandler
import javax.faces.view.facelets.ResourceResolver; //导入依赖的package包/类
public ExternalResourceHandler(ResourceResolver parent) {
this.parent = parent;
this.pagesUpdateByViewId = Collections.synchronizedMap(new HashMap<String, Boolean>());
String externalResourceBase = System.getProperty("server.base");
if (StringHelper.isNotEmpty(externalResourceBase)) {
externalResourceBase += "/custom/pages";
File folder = new File(externalResourceBase);
if (folder.exists() && folder.isDirectory()) {
this.externalResourceBaseFolder = folder;
this.useExternalResourceBase = true;
} else {
log.error("Specified path '" + externalResourceBase + "' in 'server.base' not exists or not a folder!");
}
}
}
示例2: ExternalResourceHandler
import javax.faces.view.facelets.ResourceResolver; //导入依赖的package包/类
public ExternalResourceHandler(ResourceResolver parent) {
this.parent = parent;
String externalResourceBase = System.getProperty("gluu.external.resource.base");
if (StringHelper.isNotEmpty(externalResourceBase)) {
externalResourceBase += "/oxtrust/pages";
File folder = new File(externalResourceBase);
if (folder.exists() && folder.isDirectory()) {
this.externalResourceBaseFolder = folder;
this.useExternalResourceBase = true;
} else {
log.error("Specified path '" + externalResourceBase + "' in 'gluu.external.resource.base' not exists or not folder!");
}
}
}
示例3: CustomResourceResolver
import javax.faces.view.facelets.ResourceResolver; //导入依赖的package包/类
public CustomResourceResolver(ResourceResolver parent) {
this.parent = parent;
this.basePath = "/META-INF/resources";
}
示例4: FaceletsResourceResolver
import javax.faces.view.facelets.ResourceResolver; //导入依赖的package包/类
public FaceletsResourceResolver(ResourceResolver parent) {
this.parent = parent;
this.basePath = "/META-INF";
}
示例5: FaceletsResourceResolver
import javax.faces.view.facelets.ResourceResolver; //导入依赖的package包/类
/**
* Consructor
*
* @param parent
*/
public FaceletsResourceResolver(final ResourceResolver parent) {
this.parent = parent;
}