本文整理了Java中org.jboss.modules.Module.globResources()
方法的一些代码示例,展示了Module.globResources()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Module.globResources()
方法的具体详情如下:
包路径:org.jboss.modules.Module
类名称:Module
方法名:globResources
[英]Enumerate all imported resources in this module which match the given glob expression. The glob applies to the whole resource name.
[中]枚举此模块中与给定glob表达式匹配的所有导入资源。glob应用于整个资源名称。
代码示例来源:origin: wildfly/wildfly
Iterator<Resource> resources = module.globResources("META-INF/**.tld");
while (resources.hasNext()) {
final Resource resource = resources.next();
代码示例来源:origin: io.thorntail/management-console
@Produces
public Archive managementConsoleWar() throws Exception {
// Load the management-ui webjars.
WARArchive war = ShrinkWrap.create(WARArchive.class, "management-console-ui.war");
Module module = Module.getBootModuleLoader().loadModule("org.jboss.as.console");
Iterator<Resource> resources = module.globResources("*");
while (resources.hasNext()) {
Resource each = resources.next();
war.add(new UrlAsset(each.getURL()), each.getName());
}
war.setContextRoot(this.fraction.contextRoot());
return war;
}
代码示例来源:origin: org.wildfly/wildfly-undertow
Iterator<Resource> resources = module.globResources("META-INF/**.tld");
while (resources.hasNext()) {
final Resource resource = resources.next();
代码示例来源:origin: org.jboss.eap/wildfly-undertow
Iterator<Resource> resources = module.globResources("META-INF/**.tld");
while (resources.hasNext()) {
final Resource resource = resources.next();
内容来源于网络,如有侵权,请联系作者删除!