tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lrese...@apache.org
Subject svn commit: r826361 - in /tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/xml: ContributionGeneratedMetadataDocumentProcessor.java ContributionMetadataDocumentProcessor.java
Date Sun, 18 Oct 2009 06:17:33 GMT
Author: lresende
Date: Sun Oct 18 06:17:33 2009
New Revision: 826361

URL: http://svn.apache.org/viewvc?rev=826361&view=rev
Log:
Minor Formatting

Modified:
    tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/xml/ContributionGeneratedMetadataDocumentProcessor.java
    tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/xml/ContributionMetadataDocumentProcessor.java

Modified: tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/xml/ContributionGeneratedMetadataDocumentProcessor.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/xml/ContributionGeneratedMetadataDocumentProcessor.java?rev=826361&r1=826360&r2=826361&view=diff
==============================================================================
--- tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/xml/ContributionGeneratedMetadataDocumentProcessor.java
(original)
+++ tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/xml/ContributionGeneratedMetadataDocumentProcessor.java
Sun Oct 18 06:17:33 2009
@@ -22,6 +22,7 @@
 
 import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor;
 import org.apache.tuscany.sca.core.FactoryExtensionPoint;
+import org.apache.tuscany.sca.monitor.Monitor;
 
 /**
  * URLArtifactProcessor that handles sca-contribution-generated.xml files.
@@ -31,13 +32,15 @@
 public class ContributionGeneratedMetadataDocumentProcessor extends ContributionMetadataDocumentProcessor
{
 
     public ContributionGeneratedMetadataDocumentProcessor(XMLInputFactory inputFactory,
-                                                          StAXArtifactProcessor staxProcessor)
{
-        super(inputFactory, staxProcessor);
+                                                          StAXArtifactProcessor staxProcessor,
+                                                          Monitor monitor) {
+        super(inputFactory, staxProcessor, monitor);
     }
 
     public ContributionGeneratedMetadataDocumentProcessor(FactoryExtensionPoint modelFactories,
-                                                          StAXArtifactProcessor staxProcessor)
{
-        super(modelFactories, staxProcessor);
+                                                          StAXArtifactProcessor staxProcessor,
+                                                          Monitor monitor) {
+        super(modelFactories, staxProcessor, monitor);
     }
 
     @Override

Modified: tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/xml/ContributionMetadataDocumentProcessor.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/xml/ContributionMetadataDocumentProcessor.java?rev=826361&r1=826360&r2=826361&view=diff
==============================================================================
--- tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/xml/ContributionMetadataDocumentProcessor.java
(original)
+++ tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/xml/ContributionMetadataDocumentProcessor.java
Sun Oct 18 06:17:33 2009
@@ -62,20 +62,6 @@
         this.staxProcessor = staxProcessor;
     }
 
-    /**
-     * Report a exception.
-     *
-     * @param problems
-     * @param message
-     * @param model
-     */
-    private void error(Monitor monitor, String message, Object model, Exception ex) {
-    	if (monitor != null) {
-	        Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-xml-validation-messages",
Severity.ERROR, model, message, ex);
-	        monitor.problem(problem);
-    	}
-    }
-
     public String getArtifactType() {
         return "/META-INF/sca-contribution.xml";
     }
@@ -122,4 +108,17 @@
         staxProcessor.resolve(contribution, resolver, context);
     }
 
+    /**
+     * Report a exception.
+     *
+     * @param problems
+     * @param message
+     * @param model
+     */
+    private void error(String message, Object model, Exception ex) {
+        if (monitor != null) {
+            Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-xml-validation-messages",
Severity.ERROR, model, message, ex);
+            monitor.problem(problem);
+        }
+    }
 }



Mime
View raw message