org.jboss.modules.Module.getExportedResource()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(5.1k)|赞(0)|评价(0)|浏览(157)

本文整理了Java中org.jboss.modules.Module.getExportedResource()方法的一些代码示例,展示了Module.getExportedResource()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Module.getExportedResource()方法的具体详情如下:
包路径:org.jboss.modules.Module
类名称:Module
方法名:getExportedResource

Module.getExportedResource介绍

[英]Get an exported resource URL.
[中]获取导出的资源URL。

代码示例

代码示例来源:origin: wildfly/wildfly

throw new OperationFailedException(ConnectorLogger.ROOT_LOGGER.failedToLoadModuleRA(moduleName), e);
URL path = module.getExportedResource("META-INF/ra.xml");
Closeable closable = null;
  try {

代码示例来源:origin: org.keycloak/keycloak-wf9-server-subsystem

private URI findServerWarUri() throws IllegalStateException {
  try {
    URL subsysResource = this.subsysModule.getExportedResource("module.xml");
    File subsysDir = new File(subsysResource.toURI()).getParentFile();
    File serverWarDir = new File(subsysDir, "server-war");
    return serverWarDir.toURI();
  } catch (URISyntaxException e) {
    throw new IllegalStateException(e);
  } catch (IllegalArgumentException e) {
    throw new IllegalStateException(e);
  }
}

代码示例来源:origin: org.keycloak/keycloak-wildfly-server-subsystem

private URI findServerWarUri() throws IllegalStateException {
  try {
    URL subsysResource = this.subsysModule.getExportedResource("module.xml");
    File subsysDir = new File(subsysResource.toURI()).getParentFile();
    File serverWarDir = new File(subsysDir, "server-war");
    return serverWarDir.toURI();
  } catch (URISyntaxException e) {
    throw new IllegalStateException(e);
  } catch (IllegalArgumentException e) {
    throw new IllegalStateException(e);
  }
}

代码示例来源:origin: org.keycloak/keycloak-eap6-server-subsystem

private URI findServerWarUri() throws IllegalStateException {
  try {
    URL subsysResource = this.subsysModule.getExportedResource("module.xml");
    File subsysDir = new File(subsysResource.toURI()).getParentFile();
    File serverWarDir = new File(subsysDir, "server-war");
    return serverWarDir.toURI();
  } catch (URISyntaxException e) {
    throw new IllegalStateException(e);
  } catch (IllegalArgumentException e) {
    throw new IllegalStateException(e);
  }
}

代码示例来源:origin: org.keycloak/keycloak-as7-server-subsystem

private URI findServerWarUri() throws IllegalStateException {
  try {
    URL subsysResource = this.subsysModule.getExportedResource("module.xml");
    File subsysDir = new File(subsysResource.toURI()).getParentFile();
    File serverWarDir = new File(subsysDir, "server-war");
    return serverWarDir.toURI();
  } catch (URISyntaxException e) {
    throw new IllegalStateException(e);
  } catch (IllegalArgumentException e) {
    throw new IllegalStateException(e);
  }
}

代码示例来源:origin: org.hawkular.bus/hawkular-bus-broker-wf-extension

Resource r = module.getExportedResource("config", configFile);
  return r.getURL().toString();
} catch (Throwable t) {

代码示例来源:origin: org.jboss.as/jboss-as-osgi-service

private OSGiMetaData getModuleMetadata(Module module) throws IOException {
  URL manifestURL = module.getExportedResource(JarFile.MANIFEST_NAME);
  if (manifestURL != null) {
    InputStream input = manifestURL.openStream();

代码示例来源:origin: ModeShape/modeshape

URL url = module.getExportedResource(webappName);
if (url == null) {
  LOGGER.warnv(

代码示例来源:origin: org.wildfly.swarm/swagger-webapp

URL resource = module.getExportedResource("swagger-ui.jar");
JARArchive webJar = ShrinkWrap.create(JARArchive.class);
webJar.as(ZipImporter.class).importFrom(resource.openStream());

代码示例来源:origin: io.thorntail/swagger-webapp

URL resource = module.getExportedResource("swagger-ui.jar");
JARArchive webJar = ShrinkWrap.create(JARArchive.class);
webJar.as(ZipImporter.class).importFrom(resource.openStream());

代码示例来源:origin: org.jboss.as/jboss-as-server

final ModuleLoader moduleLoader = Module.getBootModuleLoader();
Module extModule = moduleLoader.loadModule(EXT_CONTENT_MODULE);
URL url = extModule.getExportedResource(SEAM_INT_JAR);
if (url == null)
  throw ServerMessages.MESSAGES.noSeamIntegrationJarPresent(extModule);

代码示例来源:origin: wildfly/wildfly-core

final ModuleLoader moduleLoader = Module.getBootModuleLoader();
Module extModule = moduleLoader.loadModule(EXT_CONTENT_MODULE);
URL url = extModule.getExportedResource(SEAM_INT_JAR);
if (url == null)
  throw ServerLogger.ROOT_LOGGER.noSeamIntegrationJarPresent(extModule);

代码示例来源:origin: org.wildfly.core/wildfly-server

final ModuleLoader moduleLoader = Module.getBootModuleLoader();
Module extModule = moduleLoader.loadModule(EXT_CONTENT_MODULE);
URL url = extModule.getExportedResource(SEAM_INT_JAR);
if (url == null)
  throw ServerLogger.ROOT_LOGGER.noSeamIntegrationJarPresent(extModule);

代码示例来源:origin: org.wildfly/wildfly-server

final ModuleLoader moduleLoader = Module.getBootModuleLoader();
Module extModule = moduleLoader.loadModule(EXT_CONTENT_MODULE);
URL url = extModule.getExportedResource(SEAM_INT_JAR);
if (url == null)
  throw ServerMessages.MESSAGES.noSeamIntegrationJarPresent(extModule);

代码示例来源:origin: org.jboss.as/jboss-as-connector

throw new OperationFailedException(MESSAGES.failedToLoadModuleRA(moduleName), e);
URL path = module.getExportedResource("META-INF/ra.xml");
Closeable closable = null;
  try {

代码示例来源:origin: org.jboss.eap/wildfly-connector

throw new OperationFailedException(ConnectorLogger.ROOT_LOGGER.failedToLoadModuleRA(moduleName), e);
URL path = module.getExportedResource("META-INF/ra.xml");
Closeable closable = null;
  try {

相关文章