本文整理了Java中org.apache.geronimo.j2ee.deployment.Module.getModules()
方法的一些代码示例,展示了Module.getModules()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Module.getModules()
方法的具体详情如下:
包路径:org.apache.geronimo.j2ee.deployment.Module
类名称:Module
方法名:getModules
暂无
代码示例来源:origin: org.apache.geronimo.modules/geronimo-jaxws-builder
protected Set<String> getEJBWebServiceClassNames(Module module) {
if (module.getModules().size() == 0) {
return Collections.<String> emptySet();
}
Set<String> ejbWebServiceClassNames = new HashSet<String>();
for (Module subModule : (LinkedHashSet<Module<?, ?>>) module.getModules()) {
if (subModule.getType() == ConfigurationModuleType.EJB) {
Set<String> currentEJBWebServiceClassNames = (Set<String>) subModule.getSharedContext().get(EJB_WEB_SERVICE_CLASS_NAMES);
if (ejbWebServiceClassNames != null) {
ejbWebServiceClassNames.addAll(currentEJBWebServiceClassNames);
}
}
}
return ejbWebServiceClassNames;
}
代码示例来源:origin: org.apache.geronimo.modules/geronimo-openejb-builder
/**
* Does the meaty work of processing the deployment information and
* creating GBeans for all the EJBs in the JAR, etc.
*/
@Override
public void addGBeans(EARContext earContext, Module module, Bundle bundle, Collection repositories) throws DeploymentException {
if (module instanceof EjbModule) {
doAddGBeans(earContext, module, bundle, repositories);
} else {
LinkedHashSet<Module<?,?>> modules = module.getModules();
for (Module<?,?> subModule: modules) {
if (subModule instanceof EjbModule) {
doAddGBeans(earContext, subModule, bundle, repositories);
}
}
}
}
代码示例来源:origin: org.apache.geronimo.modules/geronimo-j2ee-builder
applicationInfo.getModules().add(module);
代码示例来源:origin: org.apache.geronimo.modules/geronimo-openejb-builder
@Override
public void createModule(Module module,
Object plan,
JarFile moduleFile,
String targetPath,
URL specDDUrl,
Environment environment,
Object moduleContextInfo,
AbstractName earName,
Naming naming,
ModuleIDBuilder idBuilder) throws DeploymentException {
if (!EJB_SERVER_SUPPORT) {
return;
}
//check for web module
if (module instanceof WebModule || module instanceof AppClientModule) {
//check for WEB-INF/ejb-jar.xml
Module ejbModule = createModule(plan, moduleFile, targetPath, null, environment, module, naming, idBuilder, "WEB-INF/", true);
if (ejbModule != null) {
module.getModules().add(ejbModule);
//???
module.getModuleLocations().add(targetPath);
ejbModule.getSharedContext().putAll(module.getSharedContext());
}
}
}
代码示例来源:origin: org.apache.geronimo.modules/geronimo-openejb-builder
@Override
public void initContext(EARContext earContext, Module module, Bundle bundle) throws DeploymentException {
if (module instanceof EjbModule) {
doInitContext(earContext, module, bundle);
} else {
LinkedHashSet<Module<?,?>> modules = module.getModules();
for (Module<?,?> subModule: modules) {
if (subModule instanceof EjbModule) {
if(module instanceof AppClientModule){
earContext = module.getEarContext();
}
doInitContext(earContext, subModule, bundle);
}
}
}
}
代码示例来源:origin: org.apache.geronimo.modules/geronimo-openejb-builder
LinkedHashSet<Module<?,?>> modules = module.getModules();
for (Module<?,?> subModule: modules) {
if (subModule instanceof EjbModule) {
代码示例来源:origin: org.apache.geronimo.modules/geronimo-j2ee-builder
applicationInfo.getModules().add(module);
applicationInfo.getModules().add(module);
applicationInfo.getModules().add(module);
applicationInfo.getModules().add(module);
内容来源于网络,如有侵权,请联系作者删除!