本文整理了Java中org.apache.geronimo.j2ee.deployment.Module.getSpecDD()
方法的一些代码示例,展示了Module.getSpecDD()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Module.getSpecDD()
方法的具体详情如下:
包路径:org.apache.geronimo.j2ee.deployment.Module
类名称: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());
内容来源于网络,如有侵权,请联系作者删除!