public final class IngestXmlExecutable extends Object implements org.kuali.common.util.execute.Executable
No file system access is required. The XML documents are ingested using Spring's classpath:
notation to
locate them, open an InputStream
, and feed them to the ingester service. Any workflow document
failing to be ingested correctly results in an exception being thrown.
If an explicit XmlIngesterService
instance is not provided,
CoreApiServiceLocator.getXmlIngesterService()
must be able to correctly locate XmlIngesterService
.
Modifier and Type | Class and Description |
---|---|
static class |
IngestXmlExecutable.Builder
Builds this
IngestXmlExecutable . |
Modifier and Type | Method and Description |
---|---|
static IngestXmlExecutable.Builder |
builder(List<String> xmlDocumentLocations)
Returns the builder for this
IngestXmlExecutable . |
void |
execute() |
XmlIngesterService |
getXmlIngesterService()
Returns the
XmlIngesterService . |
public void execute()
execute
in interface org.kuali.common.util.execute.Executable
public XmlIngesterService getXmlIngesterService()
XmlIngesterService
.XmlIngesterService
public static IngestXmlExecutable.Builder builder(List<String> xmlDocumentLocations)
IngestXmlExecutable
.xmlDocumentLocations
- the list of locations with XML documents to ingestIngestXmlExecutable
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.