]> git.argeo.org Git - gpl/argeo-tp.git/blob - META-INF/spring/distribution.xml
bcb1745e4d2f0091cfc75a2d518438d98079acc9
[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 <!-- Gemini -->
30 <ref bean="org.argeo.tp.gemini/org.gemini.blueprint" />
31 <!-- <ref bean="org.argeo.tp.gemini/org.gemini.web" /> -->
32 <ref bean="org.eclipse.gemini.web.core" />
33 <ref bean="org.eclipse.gemini.web.extender" />
34 <ref bean="org.eclipse.gemini.web.tomcat" />
35 </list>
36 </property>
37 </bean>
38
39 <!-- Factory -->
40 <bean id="osgiFactory" class="org.argeo.slc.repo.osgi.OsgiFactoryImpl"
41 init-method="init" destroy-method="destroy">
42 <property name="workspace" value="argeo-tp-2.1" />
43 <property name="nodeIndexers">
44 <list>
45 <bean class="org.argeo.slc.repo.ModularDistributionIndexer" />
46 <bean class="org.argeo.slc.repo.PdeSourcesIndexer" />
47 <bean class="org.argeo.slc.repo.JarFileIndexer" />
48 <bean class="org.argeo.slc.repo.ArtifactIndexer" />
49 </list>
50 </property>
51 <property name="mirrors">
52 <map>
53 <entry key="http://archive.apache.org/dist">
54 <list>
55 <value>http://mirror.derwebwolf.net/apache</value>
56 <value>http://archive.apache.org/dist</value>
57 </list>
58 </entry>
59 <entry key="http://www.eclipse.org/downloads">
60 <list>
61 <value>http://mirror.netcologne.de/eclipse</value>
62 <value>http://mirror.selfnet.de/eclipse</value>
63 <value><![CDATA[http://www.eclipse.org/downloads/download.php?file=]]></value>
64 </list>
65 </entry>
66 </map>
67 </property>
68 <property name="mavenRepositories">
69 <list>
70 <value>http://repo1.maven.org/maven2/</value>
71 <value>http://download.eclipse.org/gemini/mvn/</value>
72 </list>
73 </property>
74 <property name="javaRepository" ref="javaRepository" />
75 <property name="distRepository" ref="distRepository" />
76 </bean>
77
78 <flow:flow name="processDistribution">
79 <bean class="org.argeo.slc.repo.osgi.ProcessDistribution">
80 <property name="osgiDistribution" ref="argeo-tp" />
81 <property name="osgiFactory" ref="osgiFactory" />
82 </bean>
83 </flow:flow>
84
85 <!-- Security -->
86 <bean
87 class="org.argeo.security.core.AuthenticatedApplicationContextInitialization">
88 <property name="authenticationManager" ref="authenticationManager" />
89 <property name="beanNames">
90 <list>
91 <value>osgiFactory</value>
92 </list>
93 </property>
94 </bean>
95 </beans>