From 5539c56151df288a5754f61dde6d9008df7f0b26 Mon Sep 17 00:00:00 2001 From: rfeng Date: Fri, 12 Dec 2008 00:50:31 +0000 Subject: Pass the DocumentBuilderFactory around to work with OSGi Remove unused constructors git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@725871 13f79535-47bb-0310-9956-ffa450edef68 --- .../processor/DefaultStAXArtifactProcessorExtensionPoint.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'java/sca/modules/contribution/src') diff --git a/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/DefaultStAXArtifactProcessorExtensionPoint.java b/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/DefaultStAXArtifactProcessorExtensionPoint.java index d268c5b011..ef23778ea3 100644 --- a/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/DefaultStAXArtifactProcessorExtensionPoint.java +++ b/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/DefaultStAXArtifactProcessorExtensionPoint.java @@ -30,7 +30,6 @@ import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamReader; import javax.xml.stream.XMLStreamWriter; -import org.apache.tuscany.sca.assembly.AssemblyFactory; import org.apache.tuscany.sca.contribution.resolver.ModelResolver; import org.apache.tuscany.sca.core.ExtensionPointRegistry; import org.apache.tuscany.sca.core.FactoryExtensionPoint; @@ -41,7 +40,6 @@ import org.apache.tuscany.sca.monitor.Monitor; import org.apache.tuscany.sca.monitor.MonitorFactory; import org.apache.tuscany.sca.monitor.Problem; import org.apache.tuscany.sca.monitor.Problem.Severity; -import org.apache.tuscany.sca.policy.PolicyFactory; /** * The default implementation of an extension point for StAX artifact processors. @@ -246,8 +244,6 @@ public class DefaultStAXArtifactProcessorExtensionPoint extends // Specific initialization for the DefaultBeanModelProcessor FactoryExtensionPoint modelFactories = extensionPoints.getExtensionPoint(FactoryExtensionPoint.class); - AssemblyFactory assemblyFactory = modelFactories.getFactory(AssemblyFactory.class); - PolicyFactory policyFactory = modelFactories.getFactory(PolicyFactory.class); try { Class processorClass = (Class)processorDeclaration.loadClass(); @@ -259,15 +255,13 @@ public class DefaultStAXArtifactProcessorExtensionPoint extends modelFactory = null; } Constructor constructor = - processorClass.getConstructor(AssemblyFactory.class, - PolicyFactory.class, + processorClass.getConstructor(FactoryExtensionPoint.class, QName.class, Class.class, Object.class, Monitor.class); processor = - constructor.newInstance(assemblyFactory, - policyFactory, + constructor.newInstance(modelFactories, artifactType, getModelType(), modelFactory, -- cgit v1.2.3