Make Argeo Distribution multi-modules
[gpl/argeo-tp.git] / org.argeo.tp.factory.core / META-INF / spring / templates.xml
diff --git a/org.argeo.tp.factory.core/META-INF/spring/templates.xml b/org.argeo.tp.factory.core/META-INF/spring/templates.xml
new file mode 100644 (file)
index 0000000..2a2283f
--- /dev/null
@@ -0,0 +1,60 @@
+<?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">
+
+       <!-- Specs and templates -->
+       <flow:spec id="spec.version">
+               <flow:primitive name="version" isParameter="true" />
+       </flow:spec>
+
+       <bean id="template.archiveWrapper"
+               class="org.argeo.slc.repo.osgi.ArchiveWrapper" init-method="init"
+               destroy-method="destroy" abstract="true">
+               <property name="version" value="@{version}" />
+               <property name="osgiFactory" ref="osgiFactory" />
+       </bean>
+
+       <bean id="template.bndWrapper"
+               class="org.argeo.slc.repo.osgi.BndWrapper" abstract="true">
+               <property name="groupId" value="org.argeo.tp.misc" />
+               <property name="bndProperties">
+                       <props>
+                               <prop key="Export-Package">*</prop>
+                       </props>
+               </property>
+       </bean>
+       <bean id="template.mavenWrapper"
+               class="org.argeo.slc.repo.osgi.MavenWrapper" abstract="true">
+               <property name="groupId" value="org.argeo.tp.misc" />
+               <property name="bndProperties">
+                       <props>
+                               <prop key="Export-Package">*</prop>
+                       </props>
+               </property>
+               <property name="osgiFactory" ref="osgiFactory" />
+       </bean>
+
+       <bean id="template.mavenWrapperApacheLicense"
+               parent="template.mavenWrapper" abstract="true">
+               <property name="license">
+                       <util:constant
+                               static-field="org.argeo.slc.repo.FreeLicense.APACHE" />
+               </property>
+       </bean>
+
+       <bean id="template.mavenWrapperBSD" parent="template.mavenWrapper"
+               abstract="true">
+               <property name="license">
+                       <util:constant
+                               static-field="org.argeo.slc.repo.FreeLicense.BSD" />
+               </property>
+       </bean>
+
+</beans>