本文整理了Java中org.apache.geronimo.j2ee.deployment.Module.getEnvironment()
方法的一些代码示例,展示了Module.getEnvironment()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Module.getEnvironment()
方法的具体详情如下:
包路径:org.apache.geronimo.j2ee.deployment.Module
类名称:Module
方法名:getEnvironment
暂无
代码示例来源:origin: org.apache.geronimo.modules/geronimo-openwebbeans-builder
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 (!(module instanceof WebModule)) {
// not a web module, nothing to do
return;
}
if(hasBeanXml(module)){
EnvironmentBuilder.mergeEnvironments(module.getEnvironment(), defaultEnvironment);
EnvironmentBuilder.mergeEnvironments(module.getEnvironment(), jsfPluginEnvironment);
}
}
代码示例来源:origin: org.apache.geronimo.modules/geronimo-openwebbeans-builder
public void createModule(Module module, Bundle bundle, Naming naming, ModuleIDBuilder idBuilder)
throws DeploymentException {
if (!(module instanceof WebModule)) {
// not a web module, nothing to do
return;
}
if(hasBeanXml(module)){
EnvironmentBuilder.mergeEnvironments(module.getEnvironment(), defaultEnvironment);
EnvironmentBuilder.mergeEnvironments(module.getEnvironment(), jsfPluginEnvironment);
}
}
代码示例来源:origin: org.apache.geronimo.modules/geronimo-myfaces-builder
private void mergeEnvironment(Module module) {
if (!(module instanceof WebModule)) {
//not a web module, nothing to do
return;
}
WebModule webModule = (WebModule) module;
WebApp webApp = webModule.getSpecDD();
if (!hasFacesServlet(webApp)) {
return;
}
EnvironmentBuilder.mergeEnvironments(module.getEnvironment(), defaultEnvironment);
}
代码示例来源:origin: org.apache.geronimo.modules/geronimo-corba-builder
public void buildNaming(JndiConsumer specDD, XmlObject plan, Module module, Map<EARContext.Key, Object> sharedContext) throws DeploymentException {
if (matchesDefaultEnvironment(module.getEnvironment())) {
CorbaGBeanNameSource corbaGBeanNameSource = corbaGBeanNameSourceCollection.getElement();
if (corbaGBeanNameSource != null) {
AbstractNameQuery corbaName = corbaGBeanNameSource.getCorbaGBeanName();
if (corbaName != null) {
Artifact[] moduleId = module.getConfigId();
put("java:comp/ORB", new ORBReference(moduleId, corbaName), ReferenceType.ORB, module.getJndiContext(), Collections.<InjectionTarget>emptySet(), sharedContext);
put("java:comp/HandleDelegate", new HandleDelegateReference(moduleId, corbaName), ReferenceType.HANDLEDELEGATE, module.getJndiContext(), Collections.<InjectionTarget>emptySet(), sharedContext);
}
}
}
}
代码示例来源:origin: org.apache.geronimo.modules/geronimo-web-2.5-builder
EnvironmentBuilder.mergeEnvironments(earContext.getEnvironment(), module.getEnvironment());
moduleContext = new FragmentContext(earContext, ConfigurationModuleType.WAR);
代码示例来源:origin: org.apache.geronimo.modules/geronimo-connector-builder-1_6
if (corbaName != null) {
Artifact[] moduleId = module.getConfigId();
EnvironmentBuilder.mergeEnvironments(module.getEnvironment(), corbaEnvironment);
return new ORBReference(moduleId, corbaName);
for (Dependency dependency : module.getEnvironment().getDependencies()) {
errorMessage.append(dependency).append("\n");
代码示例来源:origin: org.apache.geronimo.modules/geronimo-connector-builder
context.put(ENV + name, new ORBReference(moduleId, corbaName));
unresolvedRefs.remove(name);
EnvironmentBuilder.mergeEnvironments(module.getEnvironment(), corbaEnvironment);
for (Dependency dependency : module.getEnvironment().getDependencies()) {
errorMessage.append(dependency).append("\n");
代码示例来源:origin: org.apache.geronimo.modules/geronimo-persistence-jpa20-builder
EnvironmentBuilder.mergeEnvironments(module.getEnvironment(), defaultEnvironment);
代码示例来源:origin: org.apache.geronimo.modules/geronimo-jaxws-ejb-builder
Environment environment = module.getEnvironment();
代码示例来源:origin: org.apache.geronimo.modules/geronimo-jasper-builder
EnvironmentBuilder.mergeEnvironments(module.getEnvironment(), defaultEnvironment);
代码示例来源:origin: org.apache.geronimo.modules/geronimo-openejb-builder
module.setRootEarContext(earContext);
if (((EjbModule) module).getEjbJar().getAssemblyDescriptor() != null) {
namingBuilder.buildEnvironment(null, null, module.getEnvironment());
代码示例来源:origin: org.apache.geronimo.modules/geronimo-j2ee-builder
module.getEnvironment(),
module.getModuleName(),
module.getName(),
代码示例来源:origin: org.apache.geronimo.modules/geronimo-connector-builder-1_6
connector = mergeMetadata(bundle, classFinder, connector);
addExportPackages(connector, module.getEnvironment(), bundle);
内容来源于网络,如有侵权,请联系作者删除!