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

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

本文整理了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

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

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

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

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

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

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

.getAppClientName() : parentModule.getModuleName();
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

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

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

@Override
public Object createService(ServiceRef serviceRef, GerServiceRefType gerServiceRef,
              Module module, Bundle bundle, Class serviceInterface,
              QName serviceQName, URI wsdlURI, Class serviceReference,
              Map<Class<?>, PortComponentRef> portComponentRefMap) throws DeploymentException {
  if(serviceRef.getLookupName() != null && !serviceRef.getLookupName().isEmpty()) {
    return new JndiReference(serviceRef.getLookupName());
  }
  EndpointInfoBuilder builder = new EndpointInfoBuilder(serviceInterface,
      gerServiceRef, portComponentRefMap, module, bundle,
      wsdlURI, serviceQName);
  builder.build();
  wsdlURI = builder.getWsdlURI();
  //TODO For non standalone web application, it is embbed of directory style in the EAR package
  wsdlURI = JAXWSBuilderUtils.normalizeWsdlPath(module, wsdlURI);
  serviceQName = builder.getServiceQName();
  Map<Object, EndpointInfo> seiInfoMap = builder.getEndpointInfo();
  HandlerChainsInfo handlerChainsInfo = null;
  if(serviceRef.getHandlerChains() != null) {
    handlerChainsInfo = handlerChainsInfoBuilder.build(serviceRef.getHandlerChains());
  }
  String serviceReferenceName = (serviceReference == null) ? null : serviceReference.getName();
  return new CXFServiceReference(serviceInterface.getName(), serviceReferenceName, wsdlURI, serviceQName, module.getModuleName(), handlerChainsInfo, seiInfoMap);
}

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

private void addDataSourceGBean(Module module, Map<EARContext.Key, Object> sharedContext, DataSource ds)
  throws DeploymentException {
  String jndiName = ds.getKey();
  if (lookupJndiContextMap(module, jndiName) != null) {
    return;
  }
  String name = jndiName;
  if (name.startsWith("java:")) {
    name = name.substring(5);
  }
  EARContext earContext = module.getEarContext();
  AbstractName dataSourceAbstractName = earContext.getNaming().createChildName(module.getModuleName(), name, "GBean");
  DataSourceDescription dsDescription = createDataSourceDescription(ds);
  String osgiJndiName = null;
  if (dsDescription.getProperties() != null) {
    osgiJndiName = dsDescription.getProperties().get(ConnectorModuleBuilder.OSGI_JNDI_SERVICE_NAME);
  }
  if (osgiJndiName == null) {
    osgiJndiName = module.getEarContext().getNaming().toOsgiJndiName(dataSourceAbstractName);
  }
  dsDescription.setOsgiServiceName(osgiJndiName);
  try {
    Object ref = DataSourceService.buildReference(dsDescription);
    put(jndiName, ref, ReferenceType.DATA_SOURCE, module.getJndiContext(), Collections.<InjectionTarget>emptySet(), sharedContext);
  } catch (IOException e) {
    throw new DeploymentException("Could not construct Reference for datasource " + dsDescription, e);
  }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

module.getModuleName(),
module.getName(),
jarFile,

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

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

相关文章