]> git.argeo.org Git - gpl/argeo-tp.git/blob - META-INF/spring/distribution.xml
e7c6246239f50dc515b873d13033b3b6ff2d356d
[gpl/argeo-tp.git] / META-INF / spring / distribution.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
4 xmlns:util="http://www.springframework.org/schema/util" xmlns:flow="http://www.argeo.org/schema/slc-flow"
5 xsi:schemaLocation="
6 http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
7 http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd
8 http://www.argeo.org/schema/slc-flow http://www.argeo.org/schema/slc-flow-1.2.xsd">
9
10 <!-- REGISTER -->
11 <bean id="org.argeo.tp" class="org.argeo.slc.repo.osgi.ArgeoOsgiDistribution"
12 init-method="init" destroy-method="destroy">
13 <constructor-arg value="org.argeo.tp:org.argeo.tp:2.1.1" />
14 <property name="modules">
15 <list>
16 <ref bean="org.argeo.tp/org.apache.log4j" />
17 <ref bean="org.argeo.tp/org.slf4j" />
18 <ref bean="org.argeo.tp.apache.tomcat/org.apache.tomcat" />
19 <ref bean="org.argeo.tp/org.aopalliance" />
20 <ref bean="org.argeo.tp.spring/org.springframework" />
21 <!-- Felix -->
22 <ref bean="org.apache.felix.framework" />
23 <ref bean="org.apache.felix.bundlerepository" />
24 <ref bean="org.apache.felix.gogo.command" />
25 <ref bean="org.apache.felix.gogo.runtime" />
26 <ref bean="org.apache.felix.gogo.shell" />
27 </list>
28 </property>
29 </bean>
30
31 <!-- Factory -->
32 <bean id="osgiFactory" class="org.argeo.slc.repo.osgi.OsgiFactoryImpl"
33 init-method="init" destroy-method="destroy">
34 <property name="workspace" value="org.argeo.tp-2.1.x" />
35 <property name="nodeIndexers">
36 <list>
37 <bean class="org.argeo.slc.repo.ArtifactIndexer" />
38 <bean class="org.argeo.slc.repo.JarFileIndexer" />
39 </list>
40 </property>
41 <property name="mirrors">
42 <map>
43 <entry key="http://archive.apache.org/dist">
44 <list>
45 <value>http://mirror.derwebwolf.net/apache</value>
46 <value>http://archive.apache.org/dist</value>
47 </list>
48 </entry>
49 <entry key="http://www.eclipse.org/downloads">
50 <list>
51 <value>http://mirror.netcologne.de/eclipse</value>
52 <value>http://mirror.selfnet.de/eclipse</value>
53 <value><![CDATA[http://www.eclipse.org/downloads/download.php?file=]]></value>
54 </list>
55 </entry>
56 </map>
57 </property>
58 <property name="javaRepository" ref="javaRepository" />
59 <property name="distRepository" ref="distRepository" />
60 </bean>
61
62 <bean
63 class="org.argeo.security.core.AuthenticatedApplicationContextInitialization">
64 <property name="authenticationManager" ref="authenticationManager" />
65 <property name="beanNames">
66 <list>
67 <value>osgiFactory</value>
68 </list>
69 </property>
70 </bean>
71
72 <flow:flow name="processDistribution">
73 <bean class="org.argeo.slc.repo.osgi.ProcessDistribution">
74 <property name="osgiDistribution" ref="org.argeo.tp" />
75 <property name="osgiFactory" ref="osgiFactory" />
76 </bean>
77 </flow:flow>
78
79 <!-- Specs and templates -->
80 <flow:spec id="spec.version">
81 <flow:primitive name="version" isParameter="true" />
82 </flow:spec>
83
84 <bean id="template.archiveWrapper" class="org.argeo.slc.repo.osgi.ArchiveWrapper"
85 init-method="init" destroy-method="destroy" abstract="true">
86 <property name="version" value="@{version}" />
87 <property name="osgiFactory" ref="osgiFactory" />
88 </bean>
89
90 <!-- Must be a prototype since wrapper are stateful objects, properties
91 such as version can be set by caller. -->
92 <bean id="template.bndWrapper" class="org.argeo.slc.repo.osgi.BndWrapper"
93 abstract="true" scope="prototype">
94 <property name="groupId" value="org.argeo.tp" />
95 <property name="bndProperties">
96 <props>
97 <prop key="Export-Package">*</prop>
98 </props>
99 </property>
100 </bean>
101 <bean id="template.mavenWrapper" class="org.argeo.slc.repo.osgi.MavenWrapper"
102 abstract="true" scope="prototype">
103 <property name="groupId" value="org.argeo.tp" />
104 <property name="bndProperties">
105 <props>
106 <prop key="Export-Package">*</prop>
107 </props>
108 </property>
109 <property name="osgiFactory" ref="osgiFactory" />
110 </bean>
111
112 </beans>