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); } }
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); } }
if (app.isStandaloneModule()) { for (String snifferType : snifferTypes) { Sniffer sniffer = snifferManager.getSniffer(snifferType);
if (app.isStandaloneModule()) { for (String snifferType : snifferTypes) { Sniffer sniffer = snifferManager.getSniffer(snifferType);
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; }
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; } };
if (app.isStandaloneModule() && app.containsSnifferType(ServerTags.CONNECTOR)) { continue;
if (app.isStandaloneModule() && app.containsSnifferType(ServerTags.CONNECTOR)) { continue;
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})",