use of com.yahoo.docproc.AbstractConcreteDocumentFactory in project vespa by vespa-engine.
the class ProcessingFactory method createConcreteDocument.
private Document createConcreteDocument(Document document, ContainerDocumentConfig.Doctype typeConfig) {
// Class name of the factory
String componentId = typeConfig.factorycomponent();
AbstractConcreteDocumentFactory cdf = docFactoryRegistry.getComponent(new ComponentId(componentId));
if (cdf == null) {
log.fine("Unable to get document factory component '" + componentId + "' from document factory registry.");
return document;
}
return cdf.getDocumentCopy(document.getDataType().getName(), document, document.getId());
}
Aggregations