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:14 UTC
svn commit: r551916 - in
/incubator/servicemix/trunk/deployables/serviceengines/servicemix-saxon:
pom.xml src/main/java/org/apache/servicemix/saxon/packaging/
src/main/java/org/apache/servicemix/saxon/packaging/SaxonServiceUnitAnalyzer.java
Author: gnodet
Date: Fri Jun 29 08:01:13 2007
New Revision: 551916
URL: http://svn.apache.org/viewvc?view=rev&rev=551916
Log:
SM-991: servicemix-saxon component lacks ServiceUnit analyser which results in generating incomplete jbi.xml
Patch provided by Piotr Bzdyl
Added:
incubator/servicemix/trunk/deployables/serviceengines/servicemix-saxon/src/main/java/org/apache/servicemix/saxon/packaging/
incubator/servicemix/trunk/deployables/serviceengines/servicemix-saxon/src/main/java/org/apache/servicemix/saxon/packaging/SaxonServiceUnitAnalyzer.java (with props)
Modified:
incubator/servicemix/trunk/deployables/serviceengines/servicemix-saxon/pom.xml
Modified: incubator/servicemix/trunk/deployables/serviceengines/servicemix-saxon/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/deployables/serviceengines/servicemix-saxon/pom.xml?view=diff&rev=551916&r1=551915&r2=551916
==============================================================================
--- incubator/servicemix/trunk/deployables/serviceengines/servicemix-saxon/pom.xml (original)
+++ incubator/servicemix/trunk/deployables/serviceengines/servicemix-saxon/pom.xml Fri Jun 29 08:01:13 2007
@@ -74,6 +74,7 @@
<configuration>
<type>service-engine</type>
<component>org.apache.servicemix.saxon.SaxonComponent</component>
+ <serviceUnitAnalyzer>org.apache.servicemix.saxon.packaging.SaxonServiceUnitAnalyzer</serviceUnitAnalyzer>
</configuration>
</plugin>
<plugin>
Added: incubator/servicemix/trunk/deployables/serviceengines/servicemix-saxon/src/main/java/org/apache/servicemix/saxon/packaging/SaxonServiceUnitAnalyzer.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/deployables/serviceengines/servicemix-saxon/src/main/java/org/apache/servicemix/saxon/packaging/SaxonServiceUnitAnalyzer.java?view=auto&rev=551916
==============================================================================
--- incubator/servicemix/trunk/deployables/serviceengines/servicemix-saxon/src/main/java/org/apache/servicemix/saxon/packaging/SaxonServiceUnitAnalyzer.java (added)
+++ incubator/servicemix/trunk/deployables/serviceengines/servicemix-saxon/src/main/java/org/apache/servicemix/saxon/packaging/SaxonServiceUnitAnalyzer.java Fri Jun 29 08:01:13 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/trunk/deployables/serviceengines/servicemix-saxon/src/main/java/org/apache/servicemix/saxon/packaging/SaxonServiceUnitAnalyzer.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/servicemix/trunk/deployables/serviceengines/servicemix-saxon/src/main/java/org/apache/servicemix/saxon/packaging/SaxonServiceUnitAnalyzer.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: incubator/servicemix/trunk/deployables/serviceengines/servicemix-saxon/src/main/java/org/apache/servicemix/saxon/packaging/SaxonServiceUnitAnalyzer.java
------------------------------------------------------------------------------
svn:mime-type = text/plain