public static Application getApplication(Applications apps, String moduleID) { if (moduleID == null) { return null; } for (ApplicationName module : apps.getModules()) if (module instanceof Application && module.getName().equals(moduleID)) return (Application)module; return null; }
public static Application getApplication(Applications apps, String moduleID) { if (moduleID == null) { return null; } for (ApplicationName module : apps.getModules()) if (module instanceof Application && module.getName().equals(moduleID)) return (Application)module; return null; }
public ApplicationName getModule(String moduleID) { for (ApplicationName module : apps.getModules()) { if (module.getName().equals(moduleID)) { return module; } } return null; }
public static <T> T getModule(Applications apps, Class<T> type, String moduleID) { if (moduleID == null) { return null; } for (ApplicationName module : apps.getModules()) if (type.isInstance(module) && module.getName().equals(moduleID)) return type.cast(module); return null; }
public static <T> T getModule(Applications apps, Class<T> type, String moduleID) { if (moduleID == null) { return null; } for (ApplicationName module : apps.getModules()) if (type.isInstance(module) && module.getName().equals(moduleID)) return type.cast(module); return null; }
public static ApplicationName getModule(String moduleID) { for (ApplicationName module : apps.getModules()) { if (module.getName().equals(moduleID)) { return module; } } return null; }
boolean isSystem = false; for (ApplicationName sysModule : modulesToExclude) { if (sysModule.getName().equals(appRefModuleName)) { isSystem = true; break;
boolean isSystem = false; for (ApplicationName sysModule : modulesToExclude) { if (sysModule.getName().equals(appRefModuleName)) { isSystem = true; break;
ConfigBeanProxy apps_w = t.enroll(apps); for (ApplicationName module : apps.getModules()) { if (module.getName().equals(appName)) { ((Applications)apps_w).getModules().remove(module); break;
ConfigBeanProxy apps_w = t.enroll(apps); for (ApplicationName module : apps.getModules()) { if (module.getName().equals(appName)) { ((Applications)apps_w).getModules().remove(module); break;