gpt4 book ai didi

org.eclipse.jst.j2ee.webapplication.WebApp.getEjbLocalRefs()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-23 16:07:05 26 4
gpt4 key购买 nike

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

WebApp.getEjbLocalRefs介绍

暂无

代码示例

代码示例来源:origin: org.eclipse/org.eclipse.jst.j2ee.ui

public Collection getChildren(Object object) {
  List result = new ArrayList();
  Object obj = weakWebApp.get();
  if (null != obj) {
    WebApp webApp = (WebApp) obj;
    if (!webApp.getEjbLocalRefs().isEmpty())
      result.addAll(webApp.getEjbLocalRefs());
    if (!webApp.getEjbRefs().isEmpty())
      result.addAll(webApp.getEjbRefs());
    if (!webApp.getResourceEnvRefs().isEmpty())
      result.addAll(webApp.getResourceEnvRefs());
    if (!webApp.getResourceRefs().isEmpty())
      result.addAll(webApp.getResourceRefs());
    if (!webApp.getMessageDestinationRefs().isEmpty())
      result.addAll(webApp.getMessageDestinationRefs());
    if (!webApp.getServiceRefs().isEmpty())
      result.addAll(webApp.getServiceRefs());
    Collection serviceRefs = null;
    try {
      WSDLServiceHelper serviceHelper = WSDLServiceExtManager.getServiceHelper();
      serviceRefs = serviceHelper.get13ServiceRefs(webApp);
    } catch (Exception re) {
      serviceRefs = Collections.EMPTY_LIST;
    }
    if (serviceRefs != null && !serviceRefs.isEmpty())
      result.addAll(serviceRefs);
  }
  return result;
}

代码示例来源:origin: org.eclipse/org.eclipse.jst.j2ee.core

/**
 * @param ref
 * @throws ArchiveWrappedException
 */
private void validateWebAppRefs(ModuleRef ref) throws ArchiveWrappedException {
  WebApp webApp = (WebApp)ref.getDeploymentDescriptor();
  List ejbRefs = new ArrayList();
  ejbRefs.addAll(webApp.getEjbRefs());
  ejbRefs.addAll(webApp.getEjbLocalRefs());
  validateEJBRefMandatoryElements(ejbRefs, ref.getUri());
  validateEJBRefs(ejbRefs, ref.getUri());
  if (webApp != null && webApp.getVersionID() <= J2EEVersionConstants.WEB_2_3_ID) {
    Set allRefs = new HashSet();
    List resourceRefs = webApp.getResourceRefs();
    List resourceEnvRefs = webApp.getResourceEnvRefs();
    List serviceRefs = webApp.getServiceRefs();
    
    validateDuplicateEJBRefs(allRefs,ejbRefs);
    validateDuplicateResourceRefs(allRefs,resourceRefs);
    validateDuplicateResourceEnvRefs(allRefs,resourceEnvRefs);
    validateDuplicateServiceRefs(allRefs,serviceRefs);
  }
}
/**

代码示例来源:origin: org.eclipse/org.eclipse.jst.j2ee.core

EList ejblocalRefs = webDD.getEjbLocalRefs();

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com