Add Felix
authormbaudier <mbaudier@argeo.org>
Wed, 4 Jun 2014 06:45:32 +0000 (08:45 +0200)
committermbaudier <mbaudier@argeo.org>
Wed, 4 Jun 2014 06:45:32 +0000 (08:45 +0200)
META-INF/spring/distribution.xml
META-INF/spring/org.argeo.tp.apache.felix.xml [new file with mode: 0644]

index 3c1eef0d6a571c05186864954e5512ab4a177a6c..e7c6246239f50dc515b873d13033b3b6ff2d356d 100644 (file)
                                <ref bean="org.argeo.tp.apache.tomcat/org.apache.tomcat" />
                                <ref bean="org.argeo.tp/org.aopalliance" />
                                <ref bean="org.argeo.tp.spring/org.springframework" />
+                               <!-- Felix -->
+                               <ref bean="org.apache.felix.framework" />
+                               <ref bean="org.apache.felix.bundlerepository" />
+                               <ref bean="org.apache.felix.gogo.command" />
+                               <ref bean="org.apache.felix.gogo.runtime" />
+                               <ref bean="org.apache.felix.gogo.shell" />
                        </list>
                </property>
        </bean>
                </property>
        </bean>
 
+       <flow:flow name="processDistribution">
+               <bean class="org.argeo.slc.repo.osgi.ProcessDistribution">
+                       <property name="osgiDistribution" ref="org.argeo.tp" />
+                       <property name="osgiFactory" ref="osgiFactory" />
+               </bean>
+       </flow:flow>
+
        <!-- Specs and templates -->
        <flow:spec id="spec.version">
                <flow:primitive name="version" isParameter="true" />
diff --git a/META-INF/spring/org.argeo.tp.apache.felix.xml b/META-INF/spring/org.argeo.tp.apache.felix.xml
new file mode 100644 (file)
index 0000000..23b9ca2
--- /dev/null
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
+       xmlns:util="http://www.springframework.org/schema/util" xmlns:flow="http://www.argeo.org/schema/slc-flow"
+       xsi:schemaLocation="
+       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+       http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd
+       http://www.argeo.org/schema/slc-flow http://www.argeo.org/schema/slc-flow-1.2.xsd">
+
+       <!-- REGISTER -->
+       <bean id="org.apache.felix.framework" p:version="4.2.1"
+               parent="template.org.apache.felix">
+       </bean>
+       <bean id="org.apache.felix.bundlerepository" p:version="1.6.6"
+               parent="template.org.apache.felix">
+       </bean>
+       <bean id="org.apache.felix.gogo.command" p:version="0.12.0"
+               parent="template.org.apache.felix">
+       </bean>
+       <bean id="org.apache.felix.gogo.runtime" p:version="0.10.0"
+               parent="template.org.apache.felix">
+       </bean>
+       <bean id="org.apache.felix.gogo.shell" p:version="0.10.0"
+               parent="template.org.apache.felix">
+       </bean>
+
+       <!-- FACTORY -->
+       <bean id="template.org.apache.felix" class="org.argeo.slc.repo.osgi.UriWrapper"
+               abstract="true">
+               <property name="baseUri" value="http://archive.apache.org/dist/felix" />
+               <property name="groupId" value="org.argeo.tp.apache.felix" />
+               <property name="doNotModify" value="true" />
+               <property name="osgiFactory" ref="osgiFactory" />
+       </bean>
+</beans>
\ No newline at end of file