You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by gn...@apache.org on 2008/07/04 18:06:54 UTC
svn commit: r674082 - in /cxf/trunk/rt: bindings/jbi/
bindings/jbi/src/main/resources/META-INF/cxf/bindings/
bindings/jbi/src/main/resources/META-INF/cxf/bindings/jbi/ transports/jbi/
transports/jbi/src/main/resources/META-INF/cxf/transport/ transports...
Author: gnodet
Date: Fri Jul 4 09:06:53 2008
New Revision: 674082
URL: http://svn.apache.org/viewvc?rev=674082&view=rev
Log:
CXF-1688: Make the JBI binding and transport OSGi bundles
Added:
cxf/trunk/rt/bindings/jbi/src/main/resources/META-INF/cxf/bindings/
cxf/trunk/rt/bindings/jbi/src/main/resources/META-INF/cxf/bindings/jbi/
cxf/trunk/rt/bindings/jbi/src/main/resources/META-INF/cxf/bindings/jbi/cxf-binding-jbi.xml
cxf/trunk/rt/transports/jbi/src/main/resources/META-INF/cxf/transport/
cxf/trunk/rt/transports/jbi/src/main/resources/META-INF/cxf/transport/jbi/
cxf/trunk/rt/transports/jbi/src/main/resources/META-INF/cxf/transport/jbi/cxf-transport-jbi.xml
Modified:
cxf/trunk/rt/bindings/jbi/pom.xml
cxf/trunk/rt/transports/jbi/pom.xml
Modified: cxf/trunk/rt/bindings/jbi/pom.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/bindings/jbi/pom.xml?rev=674082&r1=674081&r2=674082&view=diff
==============================================================================
--- cxf/trunk/rt/bindings/jbi/pom.xml (original)
+++ cxf/trunk/rt/bindings/jbi/pom.xml Fri Jul 4 09:06:53 2008
@@ -109,6 +109,50 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>1.4.1</version>
+ <executions>
+ <execution>
+ <id>bundle-manifest</id>
+ <phase>process-classes</phase>
+ <goals>
+ <goal>manifest</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <instructions>
+ <Implementation-Title>Apache CXF</Implementation-Title>
+ <Implementation-Vendor>The Apache Software Foundation</Implementation-Vendor>
+ <Implementation-Vendor-Id>org.apache</Implementation-Vendor-Id>
+ <Implementation-Version>${pom.version}</Implementation-Version>
+ <Specification-Title>Apache CXF</Specification-Title>
+ <Specification-Vendor>The Apache Software Foundation</Specification-Vendor>
+ <Specification-Version>${pom.version}</Specification-Version>
+ <DynamicImport-Package>
+ </DynamicImport-Package>
+ <Import-Package>
+ *
+ </Import-Package>
+ <Export-Package>
+ org.apache.cxf.*;version=${pom.version};-split-package:=merge-first,
+ META-INF.cxf.binding.jbi
+ </Export-Package>
+ <_failok>true</_failok>
+ </instructions>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <configuration>
+ <archive>
+ <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
+ </archive>
+ </configuration>
+ </plugin>
</plugins>
</build>
Added: cxf/trunk/rt/bindings/jbi/src/main/resources/META-INF/cxf/bindings/jbi/cxf-binding-jbi.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/bindings/jbi/src/main/resources/META-INF/cxf/bindings/jbi/cxf-binding-jbi.xml?rev=674082&view=auto
==============================================================================
--- cxf/trunk/rt/bindings/jbi/src/main/resources/META-INF/cxf/bindings/jbi/cxf-binding-jbi.xml (added)
+++ cxf/trunk/rt/bindings/jbi/src/main/resources/META-INF/cxf/bindings/jbi/cxf-binding-jbi.xml Fri Jul 4 09:06:53 2008
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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.
+-->
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="
+http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
+
+ <bean class="org.apache.cxf.binding.jbi.JBIBindingFactory"
+ id="org.apache.cxf.binding.jbi.JBIBindingFactory"
+ lazy-init="true">
+ <property name="bus" ref="cxf"/>
+ <property name="activationNamespaces">
+ <set>
+ <value>http://cxf.apache.org/bindings/jbi</value>
+ <value>http://java.sun.com/xml/ns/jbi/binding/service+engine</value>
+ </set>
+ </property>
+ </bean>
+
+</beans>
Modified: cxf/trunk/rt/transports/jbi/pom.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/jbi/pom.xml?rev=674082&r1=674081&r2=674082&view=diff
==============================================================================
--- cxf/trunk/rt/transports/jbi/pom.xml (original)
+++ cxf/trunk/rt/transports/jbi/pom.xml Fri Jul 4 09:06:53 2008
@@ -102,6 +102,50 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>1.4.1</version>
+ <executions>
+ <execution>
+ <id>bundle-manifest</id>
+ <phase>process-classes</phase>
+ <goals>
+ <goal>manifest</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <instructions>
+ <Implementation-Title>Apache CXF</Implementation-Title>
+ <Implementation-Vendor>The Apache Software Foundation</Implementation-Vendor>
+ <Implementation-Vendor-Id>org.apache</Implementation-Vendor-Id>
+ <Implementation-Version>${pom.version}</Implementation-Version>
+ <Specification-Title>Apache CXF</Specification-Title>
+ <Specification-Vendor>The Apache Software Foundation</Specification-Vendor>
+ <Specification-Version>${pom.version}</Specification-Version>
+ <DynamicImport-Package>
+ </DynamicImport-Package>
+ <Import-Package>
+ *
+ </Import-Package>
+ <Export-Package>
+ org.apache.cxf.*;version=${pom.version};-split-package:=merge-first,
+ META-INF.cxf.transport.jbi
+ </Export-Package>
+ <_failok>true</_failok>
+ </instructions>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <configuration>
+ <archive>
+ <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
+ </archive>
+ </configuration>
+ </plugin>
</plugins>
</build>
Added: cxf/trunk/rt/transports/jbi/src/main/resources/META-INF/cxf/transport/jbi/cxf-transport-jbi.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/jbi/src/main/resources/META-INF/cxf/transport/jbi/cxf-transport-jbi.xml?rev=674082&view=auto
==============================================================================
--- cxf/trunk/rt/transports/jbi/src/main/resources/META-INF/cxf/transport/jbi/cxf-transport-jbi.xml (added)
+++ cxf/trunk/rt/transports/jbi/src/main/resources/META-INF/cxf/transport/jbi/cxf-transport-jbi.xml Fri Jul 4 09:06:53 2008
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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.
+-->
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:foo="http://cxf.apache.org/configuration/foo"
+ xsi:schemaLocation="
+http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
+
+ <bean class="org.apache.cxf.transport.jbi.JBITransportFactory"
+ id="org.apache.cxf.transport.jbi.JBITransportFactory"
+ lazy-init="true">
+ <property name="bus" ref="cxf"/>
+ <property name="transportIds">
+ <list>
+ <value>http://cxf.apache.org/transports/jbi</value>
+ <value>http://cxf.apache.org/transports/jbi/configuration</value>
+ </list>
+ </property>
+ </bean>
+</beans>