org.apache.geronimo.j2ee.deployment.Module.getSpecDD()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(124)

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

Module.getSpecDD介绍

暂无

代码示例

代码示例来源:origin: org.apache.geronimo.modules/geronimo-tomcat-builder

public void initContext(EARContext earContext, Module module, ClassLoader cl) throws DeploymentException {
    WebAppType webApp = (WebAppType) module.getSpecDD();
//        MessageDestinationType[] messageDestinations = webApp.getMessageDestinationArray();
    TomcatWebAppType gerWebApp = (TomcatWebAppType) module.getVendorDD();
//        GerMessageDestinationType[] gerMessageDestinations = gerWebApp.getMessageDestinationArray();

//        ENCConfigBuilder.registerMessageDestinations(earContext, module.getName(), messageDestinations, gerMessageDestinations);
    getNamingBuilders().initContext(webApp, gerWebApp, module.getEarContext().getConfiguration(), earContext.getConfiguration(), module);
    if ((webApp.getSecurityConstraintArray().length > 0 || webApp.getSecurityRoleArray().length > 0) &&
        !gerWebApp.isSetSecurityRealmName()) {
      throw new DeploymentException("web.xml for web app " + module.getName() + " includes security elements but Geronimo deployment plan is not provided or does not contain <security-realm-name> element necessary to configure security accordingly.");
    }
    boolean hasSecurityRealmName = gerWebApp.isSetSecurityRealmName();
    buildSubstitutionGroups(gerWebApp, hasSecurityRealmName, module, earContext);
  }

代码示例来源:origin: org.apache.geronimo.modules/geronimo-connector-builder

public void initContext(EARContext earContext, Module module, ClassLoader cl) throws DeploymentException {
  ConnectorModule resourceModule = (ConnectorModule) module;
  final ConnectorType connector = (ConnectorType) module.getSpecDD();

代码示例来源:origin: org.apache.geronimo.modules/geronimo-jetty6-builder

module.setOriginalSpecDD(module.getSpecDD().toString());

相关文章