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

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

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

Module.getModuleName介绍

暂无

代码示例

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

  1. private ResourceReferenceFactory buildManagedObjectReference(Module module, AbstractNameQuery containerId, Class iface) throws DeploymentException {
  2. Configuration localConfiguration = module.getEarContext().getConfiguration();
  3. try {
  4. // first, lookup in configuration
  5. localConfiguration.findGBean(containerId);
  6. } catch (GBeanNotFoundException e) {
  7. // second, lookup in kernel
  8. Set results = this.kernel.listGBeans(containerId);
  9. if (results == null || results.isEmpty()) {
  10. throw new DeploymentException("Cannot resolve managed object ref " + containerId);
  11. } else if (results.size() > 1) {
  12. throw new DeploymentException("Managed object ref resolved to multiple results " + containerId);
  13. }
  14. }
  15. return new ResourceReferenceFactory(module.getConfigId(), containerId, iface, module.getModuleName());
  16. }

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

  1. AbstractName childName = module.getEarContext().getNaming().createChildName(module.getModuleName(), persistenceUnitName, NameFactory.PERSISTENCE_UNIT);
  2. persistenceUnitNameQuery = new AbstractNameQuery(null, childName.getName(), PERSISTENCE_UNIT_INTERFACE_TYPES);
  3. try {

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

  1. LinkedHashSet<GBeanData> gbeans = new LinkedHashSet<GBeanData>();
  2. do {
  3. AbstractName childName = module.getEarContext().getNaming().createChildName(module.getModuleName(), "", NameFactory.PERSISTENCE_UNIT);
  4. Map<String, String> name = new HashMap<String, String>(childName.getName());
  5. name.remove(NameFactory.J2EE_NAME);

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

  1. .getAppClientName() : parentModule.getModuleName();
  2. builder.createModule(module, plan, moduleFile, targetPath, specDDUrl, environment, null, parentModule == null ? null : parentModule.getModuleName(), naming, idBuilder);

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

  1. AbstractName sessionName = earContext.getNaming().createChildName(module.getModuleName(), ejbName, j2eeType);

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

  1. @Override
  2. public Object createService(ServiceRef serviceRef, GerServiceRefType gerServiceRef,
  3. Module module, Bundle bundle, Class serviceInterface,
  4. QName serviceQName, URI wsdlURI, Class serviceReference,
  5. Map<Class<?>, PortComponentRef> portComponentRefMap) throws DeploymentException {
  6. if(serviceRef.getLookupName() != null && !serviceRef.getLookupName().isEmpty()) {
  7. return new JndiReference(serviceRef.getLookupName());
  8. }
  9. EndpointInfoBuilder builder = new EndpointInfoBuilder(serviceInterface,
  10. gerServiceRef, portComponentRefMap, module, bundle,
  11. wsdlURI, serviceQName);
  12. builder.build();
  13. wsdlURI = builder.getWsdlURI();
  14. //TODO For non standalone web application, it is embbed of directory style in the EAR package
  15. wsdlURI = JAXWSBuilderUtils.normalizeWsdlPath(module, wsdlURI);
  16. serviceQName = builder.getServiceQName();
  17. Map<Object, EndpointInfo> seiInfoMap = builder.getEndpointInfo();
  18. HandlerChainsInfo handlerChainsInfo = null;
  19. if(serviceRef.getHandlerChains() != null) {
  20. handlerChainsInfo = handlerChainsInfoBuilder.build(serviceRef.getHandlerChains());
  21. }
  22. String serviceReferenceName = (serviceReference == null) ? null : serviceReference.getName();
  23. return new CXFServiceReference(serviceInterface.getName(), serviceReferenceName, wsdlURI, serviceQName, module.getModuleName(), handlerChainsInfo, seiInfoMap);
  24. }

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

  1. private void addDataSourceGBean(Module module, Map<EARContext.Key, Object> sharedContext, DataSource ds)
  2. throws DeploymentException {
  3. String jndiName = ds.getKey();
  4. if (lookupJndiContextMap(module, jndiName) != null) {
  5. return;
  6. }
  7. String name = jndiName;
  8. if (name.startsWith("java:")) {
  9. name = name.substring(5);
  10. }
  11. EARContext earContext = module.getEarContext();
  12. AbstractName dataSourceAbstractName = earContext.getNaming().createChildName(module.getModuleName(), name, "GBean");
  13. DataSourceDescription dsDescription = createDataSourceDescription(ds);
  14. String osgiJndiName = null;
  15. if (dsDescription.getProperties() != null) {
  16. osgiJndiName = dsDescription.getProperties().get(ConnectorModuleBuilder.OSGI_JNDI_SERVICE_NAME);
  17. }
  18. if (osgiJndiName == null) {
  19. osgiJndiName = module.getEarContext().getNaming().toOsgiJndiName(dataSourceAbstractName);
  20. }
  21. dsDescription.setOsgiServiceName(osgiJndiName);
  22. try {
  23. Object ref = DataSourceService.buildReference(dsDescription);
  24. put(jndiName, ref, ReferenceType.DATA_SOURCE, module.getJndiContext(), Collections.<InjectionTarget>emptySet(), sharedContext);
  25. } catch (IOException e) {
  26. throw new DeploymentException("Could not construct Reference for datasource " + dsDescription, e);
  27. }
  28. }

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

  1. abstractName = moduleContext.getNaming().createChildName(module.getModuleName(), persistenceUnitName, NameFactory.PERSISTENCE_UNIT);
  2. } else {
  3. abstractName = moduleContext.getNaming().createChildName(module.getModuleName(), persistenceModulePath, NameFactory.PERSISTENCE_UNIT_MODULE);
  4. abstractName = moduleContext.getNaming().createChildName(abstractName, moduleContext.getConfigID(), persistenceUnitName, NameFactory.PERSISTENCE_UNIT);
  5. gbeanData.setReferencePattern("TransactionManager", transactionManagerName);
  6. gbeanData.setReferencePattern("EntityManagerRegistry", extendedEntityManagerRegistryName);
  7. AbstractName validatorName = moduleContext.getNaming().createChildName(module.getModuleName(), "ValidatorFactory", NameFactory.VALIDATOR_FACTORY);
  8. gbeanData.setReferencePattern("ValidatorFactory", validatorName);

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

  1. webAppInfo.listeners.add(0, CONTEXT_LISTENER_NAME);
  2. AbstractName moduleName = module.getModuleName();
  3. Map<EARContext.Key, Object> buildingContext = new HashMap<EARContext.Key, Object>();
  4. buildingContext.put(NamingBuilder.GBEAN_NAME_KEY, moduleName);

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

  1. AbstractName moduleName = module.getModuleName();
  2. Map<EARContext.Key, Object> buildingContext = new HashMap<EARContext.Key, Object>();
  3. buildingContext.put(NamingBuilder.GBEAN_NAME_KEY, moduleName);

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

  1. AbstractName moduleName = module.getModuleName();
  2. Map<EARContext.Key, Object> buildingContext = new HashMap<EARContext.Key, Object>();
  3. buildingContext.put(NamingBuilder.GBEAN_NAME_KEY, moduleName);

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

  1. m = m.getParentModule();
  2. AbstractName appInfoName = earContext.getNaming().createChildName(m.getModuleName(), "appInfoGBean", "appInfoGBean");
  3. earContext.getGeneralData().put(EARContext.APPINFO_GBEAN_NAME_KEY, appInfoName);
  4. GBeanData appInfoData = new GBeanData(appInfoName, AppInfoGBean.class);

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

  1. AbstractName jaxwsEJBApplicationContextName = context.getNaming().createChildName(module.getModuleName(), "JAXWSEJBApplicationContext", "JAXWSEJBApplicationContext");
  2. try {
  3. ejbNamePortInfoMap = (Map<String, PortInfo>)(context.getGBeanInstance(jaxwsEJBApplicationContextName).getAttribute("ejbNamePortInfoMap"));

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

  1. moduleName = naming.createChildName(earName, environment.getConfigId().toString(), NameFactory.RESOURCE_ADAPTER_MODULE);
  2. } else {
  3. moduleName = naming.createChildName(parentModule.getModuleName(), targetPath, NameFactory.RESOURCE_ADAPTER_MODULE);

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

  1. AbstractName sessionName = earContext.getNaming().createChildName(module.getModuleName(), ejbName, j2eeType);
  2. ejbWebServiceGBean.addDependency(module.getModuleName());

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

  1. AbstractName jaxwsWebApplicationContextName = context.getNaming().createChildName(module.getModuleName(), "JAXWSWebApplicationContext", "JAXWSWebApplicationContext");
  2. try {
  3. servletNamePortInfoMap = (Map<String, PortInfo>)(context.getGBeanInstance(jaxwsWebApplicationContextName).getAttribute("servletNamePortInfoMap"));
  4. GBeanData contextSourceGBean = context.getGBeanInstance(context.getNaming().createChildName(module.getModuleName(), "ContextSource", "ContextSource"));
  5. componentContext = (Map) contextSourceGBean.getAttribute("componentContext");
  6. } catch (GBeanNotFoundException e) {

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

  1. EARContext moduleContext = module.getEarContext();
  2. GBeanData authConfigProviderData = null;
  3. AbstractName providerName = moduleContext.getNaming().createChildName(module.getModuleName(), "authConfigProvider", GBeanInfoBuilder.DEFAULT_J2EE_TYPE);
  4. try {
  5. if (authType.isSetConfigProvider()) {

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

  1. module.getModuleName(),
  2. module.getName(),
  3. jarFile,

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

  1. AbstractName validatorName = module.getEarContext().getNaming().createChildName(module.getModuleName(), "ValidatorFactory", NameFactory.VALIDATOR_FACTORY);

相关文章