]> git.argeo.org Git - gpl/argeo-tp.git/blob - META-INF/spring/distribution.xml
Workaround for regression in SLC
[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 </list>
22 </property>
23 </bean>
24
25 <!-- Factory -->
26 <bean id="osgiFactory" class="org.argeo.slc.repo.osgi.OsgiFactoryImpl"
27 init-method="init" destroy-method="destroy">
28 <property name="workspace" value="org.argeo.tp-2.1.x" />
29 <property name="nodeIndexers">
30 <list>
31 <bean class="org.argeo.slc.repo.ArtifactIndexer" />
32 <bean class="org.argeo.slc.repo.JarFileIndexer" />
33 </list>
34 </property>
35 <property name="mirrors">
36 <map>
37 <entry key="http://archive.apache.org/dist">
38 <list>
39 <value>http://mirror.derwebwolf.net/apache</value>
40 <value>http://archive.apache.org/dist</value>
41 </list>
42 </entry>
43 <entry key="http://www.eclipse.org/downloads">
44 <list>
45 <value>http://mirror.netcologne.de/eclipse</value>
46 <value>http://mirror.selfnet.de/eclipse</value>
47 <value><![CDATA[http://www.eclipse.org/downloads/download.php?file=]]></value>
48 </list>
49 </entry>
50 </map>
51 </property>
52 <property name="javaRepository" ref="javaRepository" />
53 <property name="distRepository" ref="distRepository" />
54 </bean>
55
56 <bean
57 class="org.argeo.security.core.AuthenticatedApplicationContextInitialization">
58 <property name="authenticationManager" ref="authenticationManager" />
59 <property name="beanNames">
60 <list>
61 <value>osgiFactory</value>
62 </list>
63 </property>
64 </bean>
65
66 <!-- Specs and templates -->
67 <flow:spec id="spec.version">
68 <flow:primitive name="version" isParameter="true" />
69 </flow:spec>
70
71 <bean id="template.archiveWrapper" class="org.argeo.slc.repo.osgi.ArchiveWrapper"
72 init-method="init" destroy-method="destroy" abstract="true">
73 <property name="version" value="@{version}" />
74 <property name="osgiFactory" ref="osgiFactory" />
75 </bean>
76
77 <!-- Must be a prototype since wrapper are stateful objects, properties
78 such as version can be set by caller. -->
79 <bean id="template.bndWrapper" class="org.argeo.slc.repo.osgi.BndWrapper"
80 abstract="true" scope="prototype">
81 <property name="groupId" value="org.argeo.tp" />
82 <property name="bndProperties">
83 <props>
84 <prop key="Export-Package">*</prop>
85 </props>
86 </property>
87 </bean>
88 <bean id="template.mavenWrapper" class="org.argeo.slc.repo.osgi.MavenWrapper"
89 abstract="true" scope="prototype">
90 <property name="groupId" value="org.argeo.tp" />
91 <property name="bndProperties">
92 <props>
93 <prop key="Export-Package">*</prop>
94 </props>
95 </property>
96 <property name="osgiFactory" ref="osgiFactory" />
97 </bean>
98
99 </beans>