Search in sources :

Example 1 with DigesterLoader

use of org.apache.commons.digester3.binder.DigesterLoader in project ocvn by devgateway.

the class XMLFileImport method process.

@Async
public void process(final InputStream inputStream) throws IOException, SAXException {
    DigesterLoader digesterLoader = DigesterLoader.newLoader(getAbstractRulesModule());
    Digester digester = digesterLoader.newDigester();
    // Push this object onto Digester's stack to handle object save operation (call saveRelease method)
    digester.push(this);
    digester.parse(inputStream);
}
Also used : DigesterLoader(org.apache.commons.digester3.binder.DigesterLoader) Digester(org.apache.commons.digester3.Digester) Async(org.springframework.scheduling.annotation.Async)

Aggregations

Digester (org.apache.commons.digester3.Digester)1 DigesterLoader (org.apache.commons.digester3.binder.DigesterLoader)1 Async (org.springframework.scheduling.annotation.Async)1