diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-10-21 11:56:14 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-10-21 11:56:14 +0000 |
commit | f265fa28ac8115c5ae664a62a0c8f110343d955f (patch) | |
tree | fe8bf7941f574809d8bcab4f8ec9b585f3941341 /java/sca/modules/assembly-xml | |
parent | daac67ff4255bd4c65892eb42c76ac74807c0bdf (diff) |
Set correct monitor on the ValidatingXMLInputFactory so that any errors that it finds are reported successfully
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@827971 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/assembly-xml')
-rw-r--r-- | java/sca/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeDocumentProcessor.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/java/sca/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeDocumentProcessor.java b/java/sca/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeDocumentProcessor.java index 8a28efb461..2969e257d6 100644 --- a/java/sca/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeDocumentProcessor.java +++ b/java/sca/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeDocumentProcessor.java @@ -46,7 +46,7 @@ import org.apache.tuscany.sca.monitor.Monitor; * @version $Rev$ $Date$ */ public class CompositeDocumentProcessor extends BaseAssemblyProcessor implements URLArtifactProcessor<Composite> { - private XMLInputFactory inputFactory; + private ValidatingXMLInputFactory inputFactory; /** @@ -94,6 +94,11 @@ public class CompositeDocumentProcessor extends BaseAssemblyProcessor implements monitor.setArtifactName(uri.toString()); } //end if + // set the monitor on the input factory as the standard XMLInputFactory + // methods used for creating readers don't allow for the context to + // be passed in + inputFactory.setMonitor(context.getMonitor()); + XMLStreamReader reader = inputFactory.createXMLStreamReader(scdlStream); reader.nextTag(); |