/** * Runs the term given through all the vocabulary extensions we have. * * @param term the term being processed */ protected void extendTerm(VocabularyInputTerm term) { for (VocabularyExtension extension : this.extensions.get()) { if (extension.isVocabularySupported(this)) { extension.extendTerm(term, this); } } }
try { for (VocabularyExtension ext : this.extensions.get()) { if (ext.isVocabularySupported(this)) { ext.indexingStarted(this); } finally { for (VocabularyExtension ext : this.extensions.get()) { if (ext.isVocabularySupported(this)) { ext.indexingEnded(this);
this.logger.debug("Extending query [{}] for vocabulary [{}]", query, this.getIdentifier()); for (VocabularyExtension extension : this.extensions.get()) { if (extension.isVocabularySupported(this)) { try { extension.extendQuery(query, this); } catch (Exception e) { this.logger.error("Failed to extend query with vocabulary: {}", extension.toString());
@Override public List<VocabularyExtension> getExtensions() { List<VocabularyExtension> result = new LinkedList<>(); for (VocabularyExtension extension : this.extensions.get()) { if (extension.isVocabularySupported(this)) { result.add(extension); } } return result; }