tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r813345 - /tuscany/java/sca/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ConfiguredOperationProcessor.java
Date Thu, 10 Sep 2009 10:07:02 GMT
Author: antelder
Date: Thu Sep 10 10:07:02 2009
New Revision: 813345

URL: http://svn.apache.org/viewvc?rev=813345&view=rev
Log:
Merge ConfiguredOperation assembly-xml methods from 1.x to 2.x

Added:
    tuscany/java/sca/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ConfiguredOperationProcessor.java
  (contents, props changed)
      - copied, changed from r813332, tuscany/branches/sca-java-1.x/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ConfiguredOperationProcessor.java

Copied: tuscany/java/sca/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ConfiguredOperationProcessor.java
(from r813332, tuscany/branches/sca-java-1.x/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ConfiguredOperationProcessor.java)
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ConfiguredOperationProcessor.java?p2=tuscany/java/sca/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ConfiguredOperationProcessor.java&p1=tuscany/branches/sca-java-1.x/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ConfiguredOperationProcessor.java&r1=813332&r2=813345&rev=813345&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.x/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ConfiguredOperationProcessor.java
(original)
+++ tuscany/java/sca/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ConfiguredOperationProcessor.java
Thu Sep 10 10:07:02 2009
@@ -28,12 +28,12 @@
 
 import org.apache.tuscany.sca.assembly.AssemblyFactory;
 import org.apache.tuscany.sca.assembly.ConfiguredOperation;
-import org.apache.tuscany.sca.contribution.ModelFactoryExtensionPoint;
+import org.apache.tuscany.sca.contribution.processor.ContributionReadException;
+import org.apache.tuscany.sca.contribution.processor.ContributionResolveException;
+import org.apache.tuscany.sca.contribution.processor.ContributionWriteException;
 import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor;
 import org.apache.tuscany.sca.contribution.resolver.ModelResolver;
-import org.apache.tuscany.sca.contribution.service.ContributionReadException;
-import org.apache.tuscany.sca.contribution.service.ContributionResolveException;
-import org.apache.tuscany.sca.contribution.service.ContributionWriteException;
+import org.apache.tuscany.sca.core.FactoryExtensionPoint;
 import org.apache.tuscany.sca.monitor.Monitor;
 import org.apache.tuscany.sca.policy.PolicyFactory;
 
@@ -45,14 +45,14 @@
 public class ConfiguredOperationProcessor implements StAXArtifactProcessor<ConfiguredOperation>,
Constants{
 
     private AssemblyFactory assemblyFactory;
-    private PolicyAttachPointProcessor policyProcessor;
+    private PolicySubjectProcessor policyProcessor;
     private PolicyFactory policyFactory;
     private Monitor monitor;
 
-    public ConfiguredOperationProcessor(ModelFactoryExtensionPoint modelFactories, Monitor
monitor) {
+    public ConfiguredOperationProcessor(FactoryExtensionPoint modelFactories, Monitor monitor)
{
         this.assemblyFactory = modelFactories.getFactory(AssemblyFactory.class);
         this.policyFactory = modelFactories.getFactory(PolicyFactory.class);
-        this.policyProcessor = new PolicyAttachPointProcessor(policyFactory);
+        this.policyProcessor = new PolicySubjectProcessor(policyFactory);
         this.monitor = monitor;
     }
 
@@ -81,7 +81,7 @@
         throws ContributionWriteException, XMLStreamException {
 
         // Write an <operation>
-        writer.writeStartElement(Constants.SCA10_NS, OPERATION);
+        writer.writeStartElement(Constants.SCA11_NS, OPERATION);
         policyProcessor.writePolicyAttributes(configuredOperation, writer);
 
         writer.writeAttribute(NAME, configuredOperation.getName());

Propchange: tuscany/java/sca/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ConfiguredOperationProcessor.java
------------------------------------------------------------------------------
    eol-style = native

Propchange: tuscany/java/sca/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ConfiguredOperationProcessor.java
------------------------------------------------------------------------------
--- svn:mergeinfo (added)
+++ svn:mergeinfo Thu Sep 10 10:07:02 2009
@@ -0,0 +1 @@
+/tuscany/branches/sca-java-1.3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ConfiguredOperationProcessor.java:671193



Mime
View raw message