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

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

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

Module.getRootEarContext介绍

暂无

代码示例

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

public static void getModuleClasspath(Module module, DeploymentContext context, LinkedHashSet<URL> classpath) throws Exception {
  getModuleClasspath(module.getEarContext(), classpath);
  if (module.getRootEarContext() != module.getEarContext()) {
    getModuleClasspath(module.getRootEarContext(), classpath);
  }
}

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

public void initContext(JndiConsumer specDD, XmlObject plan, Module module) throws DeploymentException {
  Collection<MessageDestination> specDestinations;
  try {
    Method m = specDD.getClass().getMethod("getMessageDestination", new Class[0]);
    m.setAccessible(true);
    specDestinations = (Collection<MessageDestination>) m.invoke(specDD, new Object[0]);
  } catch (Exception e) {
    specDestinations = new ArrayList<MessageDestination>();
  }
  XmlObject[] gerDestinations = plan.selectChildren(GER_MESSAGE_DESTINATION_QNAME_SET);
  Map<String, GerMessageDestinationType> nameMap = new HashMap<String, GerMessageDestinationType>();
  for (XmlObject gerDestination : gerDestinations) {
    GerMessageDestinationType destination = (GerMessageDestinationType) gerDestination.copy().changeType(GerMessageDestinationType.type);
    String name = destination.getMessageDestinationName().trim();
    nameMap.put(name, destination);
    boolean found = false;
    for (MessageDestination specDestination : specDestinations) {
      if (specDestination.getMessageDestinationName().trim().equals(name)) {
        found = true;
        break;
      }
    }
    if (!found) {
      throw new DeploymentException("No spec DD message-destination for " + name);
    }
  }
  module.getRootEarContext().registerMessageDestionations(module.getModuleURI().toString(), nameMap);
}

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

public void initContext(XmlObject specDD, XmlObject plan, Module module) throws DeploymentException {
  List<MessageDestinationType> specDestinations = convert(specDD.selectChildren(messageDestinationQNameSet), JEE_CONVERTER, MessageDestinationType.class, MessageDestinationType.type);
  XmlObject[] gerDestinations = plan.selectChildren(GER_MESSAGE_DESTINATION_QNAME_SET);
  Map<String, GerMessageDestinationType> nameMap = new HashMap<String, GerMessageDestinationType>();
  for (XmlObject gerDestination : gerDestinations) {
    GerMessageDestinationType destination = (GerMessageDestinationType) gerDestination.copy().changeType(GerMessageDestinationType.type);
    String name = destination.getMessageDestinationName().trim();
    nameMap.put(name, destination);
    boolean found = false;
    for (MessageDestinationType specDestination : specDestinations) {
      if (specDestination.getMessageDestinationName().getStringValue().trim().equals(name)) {
        found = true;
        break;
      }
    }
    if (!found) {
      throw new DeploymentException("No spec DD message-destination for " + name);
    }
  }
  module.getRootEarContext().registerMessageDestionations(module.getName(), nameMap);
}

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

Set<String> ejbLocalRefNames = new HashSet<String>();
try {
  EjbModuleBuilder.EarData earData = EjbModuleBuilder.EarData.KEY.get(module.getRootEarContext().getGeneralData());

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

try {
  ejbModuleGBeanData = module.getEarContext().findGBeanDatas(module.getEarContext().getConfiguration(), new AbstractNameQuery(ejbModule.getModuleName())).iterator().next();
  ejbModuleGBeanData.setReferencePattern("J2EEServer", module.getRootEarContext().getServerName());

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

Map<String, GerResourceEnvRefType> refMap = mapResourceEnvRefs(gerResourceEnvRefsUntyped);
int initialGerRefSize = refMap.size();
Map<String, Map<String, GerMessageDestinationType>> messageDestinations = module.getRootEarContext().getMessageDestinations();

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

if (subModule instanceof EjbModule)  {
  subModule.setEarContext(module.getEarContext());
  subModule.setRootEarContext(module.getRootEarContext());

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

Map<String, Map<String, GerMessageDestinationType>> messageDestinations = module.getRootEarContext().getMessageDestinations();

相关文章