diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-10-05 04:45:14 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-10-05 04:45:14 +0000 |
commit | 86bdc279fb48bd35f8091b5cedd30aa049b5bdf8 (patch) | |
tree | 134582a360c8513616acf6f82a941f91179ef20e /java/sca/modules | |
parent | 05a8574698d6ac697f85f47dbc9bfef046303de6 (diff) |
Use Tuscany extensibility to create XMLOutputFactory
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@821680 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | java/sca/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/java/sca/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java b/java/sca/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java index aeb962faf8..86c693729b 100644 --- a/java/sca/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java +++ b/java/sca/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java @@ -42,6 +42,7 @@ import org.apache.tuscany.sca.contribution.Contribution; import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtensionPoint; import org.apache.tuscany.sca.core.ExtensionPointRegistry; +import org.apache.tuscany.sca.core.FactoryExtensionPoint; import org.apache.tuscany.sca.core.UtilityExtensionPoint; import org.apache.tuscany.sca.core.invocation.ProxyFactory; import org.apache.tuscany.sca.node.Client; @@ -314,7 +315,9 @@ public class NodeImpl implements Node, Client { private String writeComposite(Composite composite, StAXArtifactProcessor<Composite> compositeProcessor){ ByteArrayOutputStream bos = new ByteArrayOutputStream(); - XMLOutputFactory outputFactory = XMLOutputFactory.newInstance(); + XMLOutputFactory outputFactory = + manager.getExtensionPoints().getExtensionPoint(FactoryExtensionPoint.class) + .getFactory(XMLOutputFactory.class); try { compositeProcessor.write(composite, outputFactory.createXMLStreamWriter(bos)); |