]> git.argeo.org Git - gpl/argeo-tp.git/blob - META-INF/spring/distribution.xml
07e296f62708a78d42e83ba04b8e9d7962d44c70
[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="argeo-tp" class="org.argeo.slc.repo.osgi.ArgeoOsgiDistributionImpl"
12 init-method="init" destroy-method="destroy">
13 <constructor-arg value="org.argeo.tp: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.aopalliance" />
20 <ref bean="org.argeo.tp/org.aspectj" />
21 <ref bean="org.argeo.tp.spring/org.springframework" />
22 <ref bean="org.argeo.tp.apache.ant/org.apache.ant" />
23 <!-- Felix -->
24 <ref bean="org.apache.felix.framework" />
25 <ref bean="org.apache.felix.bundlerepository" />
26 <ref bean="org.apache.felix.gogo.command" />
27 <ref bean="org.apache.felix.gogo.runtime" />
28 <ref bean="org.apache.felix.gogo.shell" />
29 </list>
30 </property>
31 </bean>
32
33 <!-- Factory -->
34 <bean id="osgiFactory" class="org.argeo.slc.repo.osgi.OsgiFactoryImpl"
35 init-method="init" destroy-method="destroy">
36 <property name="workspace" value="argeo-tp-2.1" />
37 <property name="nodeIndexers">
38 <list>
39 <bean class="org.argeo.slc.repo.ModularDistributionIndexer" />
40 <bean class="org.argeo.slc.repo.PdeSourcesIndexer" />
41 <bean class="org.argeo.slc.repo.JarFileIndexer" />
42 <bean class="org.argeo.slc.repo.ArtifactIndexer" />
43 </list>
44 </property>
45 <property name="mirrors">
46 <map>
47 <entry key="http://archive.apache.org/dist">
48 <list>
49 <value>http://mirror.derwebwolf.net/apache</value>
50 <value>http://archive.apache.org/dist</value>
51 </list>
52 </entry>
53 <entry key="http://www.eclipse.org/downloads">
54 <list>
55 <value>http://mirror.netcologne.de/eclipse</value>
56 <value>http://mirror.selfnet.de/eclipse</value>
57 <value><![CDATA[http://www.eclipse.org/downloads/download.php?file=]]></value>
58 </list>
59 </entry>
60 </map>
61 </property>
62 <property name="javaRepository" ref="javaRepository" />
63 <property name="distRepository" ref="distRepository" />
64 </bean>
65
66 <flow:flow name="processDistribution">
67 <bean class="org.argeo.slc.repo.osgi.ProcessDistribution">
68 <property name="osgiDistribution" ref="argeo-tp" />
69 <property name="osgiFactory" ref="osgiFactory" />
70 </bean>
71 </flow:flow>
72
73 <!-- Security -->
74 <bean
75 class="org.argeo.security.core.AuthenticatedApplicationContextInitialization">
76 <property name="authenticationManager" ref="authenticationManager" />
77 <property name="beanNames">
78 <list>
79 <value>osgiFactory</value>
80 </list>
81 </property>
82 </bean>
83 </beans>