本文整理了Java中org.apache.geronimo.j2ee.deployment.Module.getSharedContext()
方法的一些代码示例,展示了Module.getSharedContext()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Module.getSharedContext()
方法的具体详情如下:
包路径:org.apache.geronimo.j2ee.deployment.Module
类名称:Module
方法名:getSharedContext
暂无
代码示例来源: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
@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-openwebbeans-builder
Map sharedContext = module.getSharedContext();
代码示例来源:origin: org.apache.geronimo.modules/geronimo-myfaces-builder
Map sharedContext = module.getSharedContext();
代码示例来源:origin: org.apache.geronimo.modules/geronimo-jasper-builder
Map sharedContext = module.getSharedContext();
代码示例来源:origin: org.apache.geronimo.modules/geronimo-concurrent-builder
ManagedResourceRefProcessor processor = new ManagedResourceRefProcessor(refMap, module.getSharedContext());
ResourceAnnotationHelper.processAnnotations(module.getAnnotatedApp(), module.getClassFinder(), processor);
} catch (Exception e) {
Map<String, GerResourceEnvRefType> defaultMappings = DEFAULT_MAPPINGS_KEY.get(module.getSharedContext());
refMap.putAll(defaultMappings);
代码示例来源:origin: org.apache.geronimo.modules/geronimo-jaxws-builder
moduleHolder = (Holder) module.getSharedContext().get(NamingBuilder.INJECTION_KEY);
GBeanData contextSourceGBean = context.getGBeanInstance(context.getNaming().createChildName(module.getModuleName(), "ContextSource", "ContextSource"));
componentContext = (Map) contextSourceGBean.getAttribute("componentContext");
内容来源于网络,如有侵权,请联系作者删除!