You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2007/06/29 17:01:10 UTC

svn commit: r551915 - in /incubator/servicemix/branches/servicemix-3.1/deployables/serviceengines/servicemix-saxon: ./ src/main/java/org/apache/servicemix/saxon/packaging/

Author: gnodet
Date: Fri Jun 29 08:01:10 2007
New Revision: 551915

URL: http://svn.apache.org/viewvc?view=rev&rev=551915
Log:
SM-991: servicemix-saxon component lacks ServiceUnit analyser which results in generating incomplete jbi.xml
Patch provided by Piotr Bzdyl

Added:
    incubator/servicemix/branches/servicemix-3.1/deployables/serviceengines/servicemix-saxon/src/main/java/org/apache/servicemix/saxon/packaging/
    incubator/servicemix/branches/servicemix-3.1/deployables/serviceengines/servicemix-saxon/src/main/java/org/apache/servicemix/saxon/packaging/SaxonServiceUnitAnalyzer.java   (with props)
Modified:
    incubator/servicemix/branches/servicemix-3.1/deployables/serviceengines/servicemix-saxon/pom.xml

Modified: incubator/servicemix/branches/servicemix-3.1/deployables/serviceengines/servicemix-saxon/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-3.1/deployables/serviceengines/servicemix-saxon/pom.xml?view=diff&rev=551915&r1=551914&r2=551915
==============================================================================
--- incubator/servicemix/branches/servicemix-3.1/deployables/serviceengines/servicemix-saxon/pom.xml (original)
+++ incubator/servicemix/branches/servicemix-3.1/deployables/serviceengines/servicemix-saxon/pom.xml Fri Jun 29 08:01:10 2007
@@ -73,6 +73,7 @@
         <configuration>
           <type>service-engine</type>
           <component>org.apache.servicemix.saxon.SaxonComponent</component>
+          <serviceUnitAnalyzer>org.apache.servicemix.saxon.packaging.SaxonServiceUnitAnalyzer</serviceUnitAnalyzer>
         </configuration>
       </plugin>
       <plugin>
@@ -97,4 +98,4 @@
     <saxon-version>8.8</saxon-version>
   </properties>
 
-</project>
\ No newline at end of file
+</project>

Added: incubator/servicemix/branches/servicemix-3.1/deployables/serviceengines/servicemix-saxon/src/main/java/org/apache/servicemix/saxon/packaging/SaxonServiceUnitAnalyzer.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-3.1/deployables/serviceengines/servicemix-saxon/src/main/java/org/apache/servicemix/saxon/packaging/SaxonServiceUnitAnalyzer.java?view=auto&rev=551915
==============================================================================
--- incubator/servicemix/branches/servicemix-3.1/deployables/serviceengines/servicemix-saxon/src/main/java/org/apache/servicemix/saxon/packaging/SaxonServiceUnitAnalyzer.java (added)
+++ incubator/servicemix/branches/servicemix-3.1/deployables/serviceengines/servicemix-saxon/src/main/java/org/apache/servicemix/saxon/packaging/SaxonServiceUnitAnalyzer.java Fri Jun 29 08:01:10 2007
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.servicemix.saxon.packaging;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicemix.common.Endpoint;
+import org.apache.servicemix.common.packaging.Consumes;
+import org.apache.servicemix.common.xbean.AbstractXBeanServiceUnitAnalyzer;
+import org.apache.servicemix.saxon.SaxonEndpoint;
+
+public class SaxonServiceUnitAnalyzer extends AbstractXBeanServiceUnitAnalyzer {
+
+    @Override
+    protected List<Consumes> getConsumes(Endpoint endpoint) {
+        return Collections.emptyList();
+    }
+
+    @Override
+    protected String getXBeanFile() {
+        return "xbean.xml";
+    }
+
+    @Override
+    protected boolean isValidEndpoint(Object bean) {
+        return bean instanceof SaxonEndpoint;
+    }
+
+}

Propchange: incubator/servicemix/branches/servicemix-3.1/deployables/serviceengines/servicemix-saxon/src/main/java/org/apache/servicemix/saxon/packaging/SaxonServiceUnitAnalyzer.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: incubator/servicemix/branches/servicemix-3.1/deployables/serviceengines/servicemix-saxon/src/main/java/org/apache/servicemix/saxon/packaging/SaxonServiceUnitAnalyzer.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain