com.sun.enterprise.config.serverbeans.Application.isStandaloneModule()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(99)

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

Application.isStandaloneModule介绍

暂无

代码示例

代码示例来源:origin: org.glassfish.main.admin/config-api

public static List<Application> getApplicationsWithSnifferType(
    Applications apps, String snifferType, 
    boolean onlyStandaloneModules) {
    List <Application> result = new ArrayList<Application>() {
    };
    List<Application> applications = 
      getModules(apps, Application.class);      
    for (Application app : applications) {
      if (app.containsSnifferType(snifferType)) {
        if (onlyStandaloneModules) {
          if (app.isStandaloneModule()) {
            result.add(app);
          }
        } else {
          result.add(app);
        }
      }
    }
    return Collections.unmodifiableList(result);
  }
}

代码示例来源:origin: org.glassfish.admin/config-api

public static List<Application> getApplicationsWithSnifferType(
    Applications apps, String snifferType, 
    boolean onlyStandaloneModules) {
    List <Application> result = new ArrayList<Application>() {
    };
    List<Application> applications = 
      getModules(apps, Application.class);      
    for (Application app : applications) {
      if (app.containsSnifferType(snifferType)) {
        if (onlyStandaloneModules) {
          if (app.isStandaloneModule()) {
            result.add(app);
          }
        } else {
          result.add(app);
        }
      }
    }
    return Collections.unmodifiableList(result);
  }
}

代码示例来源:origin: org.glassfish.main.core/kernel

if (app.isStandaloneModule()) {
  for (String snifferType : snifferTypes) {
    Sniffer sniffer = snifferManager.getSniffer(snifferType);

代码示例来源:origin: fujitsu/launcher

if (app.isStandaloneModule()) {
  for (String snifferType : snifferTypes) {
    Sniffer sniffer = snifferManager.getSniffer(snifferType);

代码示例来源:origin: org.glassfish.deployment/deployment-admin

private boolean isApplicationOfThisType(String name, String type) {
  if (type == null)  {
    return true;
  }
  Application app = applications.getApplication(name);
  if (app != null) {
    if (!app.isStandaloneModule()) {
      if (type.equals("ear")) {
        return true;
      } else {
        return false;
      }
    }
    for (Module module : app.getModule()) {
      final List<Engine> engineList = module.getEngines();
      for (Engine engine : engineList) {
        if (engine.getSniffer().equals(type)) {
          return true;
        }
      }
    }
  }
  return false;
}

代码示例来源:origin: eclipse-ee4j/glassfish

public boolean isInstance(Object obj) {
  if (super.isInstance(obj)) {
   ApplicationOrderInfo appOrderInfo = (ApplicationOrderInfo)obj;
   if ((appOrderInfo.getApplication().containsSnifferType(ServerTags.CONNECTOR)) &&
     (appOrderInfo.getApplication().isStandaloneModule())) {
    return true;
   }
  }
  return false;
 }
};

代码示例来源:origin: org.glassfish.main.core/kernel

if (app.isStandaloneModule() && 
  app.containsSnifferType(ServerTags.CONNECTOR)) {
  continue;

代码示例来源:origin: org.glassfish.main.core/kernel

if (app.isStandaloneModule() &&
  app.containsSnifferType(ServerTags.CONNECTOR)) {
  continue;

代码示例来源:origin: org.glassfish.main.web/web-gui-plugin-common

if (app.isStandaloneModule() && appNameAndOptionalModuleName.contains("/")) {
  fail(report, "standaloneAppNoSubMods",
      "Application {0} is a stand-alone application and contains no submodules but submodule {1} was specified",
if ( ! app.isStandaloneModule() && ! appNameAndOptionalModuleName.contains("/")) {
  fail(report, "earNoModuleSelection",
      "Application {0} is an enterprise application; please also specify one of the web module names ({1}) as part of the command argument (for example, {0}/{2})",

相关文章

微信公众号

最新文章

更多