use of com.yahoo.vespa.model.container.search.searchchain.Source in project vespa by vespa-engine.
the class DomProviderBuilder method buildChain.
@Override
protected Provider buildChain(AbstractConfigProducer ancestor, Element providerElement, ChainSpecification specWithoutInnerComponents) {
ProviderReader providerReader = new ProviderReader(providerElement);
if (providerReader.certificateApplicationId == null && providerReader.certificateProxy != null) {
throw new IllegalArgumentException("Provider '" + specWithoutInnerComponents.componentId + "' must have a certificate application ID, since a certificate store proxy is given");
}
FederationOptions federationOptions = readFederationOptions(providerElement);
Provider provider = buildProvider(specWithoutInnerComponents, providerReader, federationOptions);
Collection<Source> sources = buildSources(ancestor, providerElement);
addSources(provider, sources);
return provider;
}
Aggregations