@Override public void addCodeBase(ICodeBase codeBase) { if (codeBase.isApplicationCodeBase()) { if (!(codeBase instanceof IScannableCodeBase)) { throw new IllegalStateException(); } appCodeBaseList.add((IScannableCodeBase) codeBase); } else { auxCodeBaseList.add(codeBase); } }
@Override public Map<String, ICodeBaseEntry> getApplicationCodebaseEntries() { Map<String, ICodeBaseEntry> appEntries = new HashMap<>(); Iterator<Entry<String, ICodeBaseEntry>> iterator = codeBaseEntryMap.entrySet().iterator(); while(iterator.hasNext()) { Entry<String, ICodeBaseEntry> entry = iterator.next(); ICodeBaseEntry codeBaseEntry = entry.getValue(); if(codeBaseEntry.getCodeBase().isApplicationCodeBase()) { appEntries.put(entry.getKey(), codeBaseEntry); } } return appEntries; }
if (!discoveredCodeBase.getCodeBase().isApplicationCodeBase()) { continue;
if (!discoveredCodeBase.getCodeBase().isApplicationCodeBase() && item.isAppCodeBase()) { discoveredCodeBase.getCodeBase().setApplicationCodeBase(true); && ( discoveredCodeBase.codeBase.isApplicationCodeBase() || item.getHowDiscovered() == ICodeBase.Discovered.SPECIFIED) ) {
@Override public void addCodeBase(ICodeBase codeBase) { if (codeBase.isApplicationCodeBase()) { if (!(codeBase instanceof IScannableCodeBase)) { throw new IllegalStateException(); } appCodeBaseList.add((IScannableCodeBase) codeBase); } else { auxCodeBaseList.add(codeBase); } }
@Override public Map<String, ICodeBaseEntry> getApplicationCodebaseEntries() { Map<String, ICodeBaseEntry> appEntries = new HashMap<String, ICodeBaseEntry>(); Iterator<Entry<String, ICodeBaseEntry>> iterator = codeBaseEntryMap.entrySet().iterator(); while(iterator.hasNext()) { Entry<String, ICodeBaseEntry> entry = iterator.next(); ICodeBaseEntry codeBaseEntry = entry.getValue(); if(codeBaseEntry.getCodeBase().isApplicationCodeBase()) { appEntries.put(entry.getKey(), codeBaseEntry); } } return appEntries; }
if (!discoveredCodeBase.getCodeBase().isApplicationCodeBase()) { continue;
if (!discoveredCodeBase.getCodeBase().isApplicationCodeBase() && item.isAppCodeBase()) { discoveredCodeBase.getCodeBase().setApplicationCodeBase(true); && ( discoveredCodeBase.codeBase.isApplicationCodeBase() || item.getHowDiscovered() == ICodeBase.Discovered.SPECIFIED) ) {