Salome HOME
Refactoring of Database, replacing SQL by DAOs calls. Methods for search by criteria...
[tools/siman.git] / Workspace / Siman / src / spring / applicationContext.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"
4         xmlns:aop="http://www.springframework.org/schema/aop"
5         xmlns:context="http://www.springframework.org/schema/context"
6         xsi:schemaLocation="http://www.springframework.org/schema/beans  
7 http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
8 http://www.springframework.org/schema/aop  
9 http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
10 http://www.springframework.org/schema/context
11 http://www.springframework.org/schema/context/spring-context-3.0.xsd">
12
13
14         <context:property-placeholder
15                 location="classpath:siman.properties,classpath:jdbc.properties"
16                 ignore-unresolvable="true" />
17
18         <!-- configuration i18n -->
19         <bean id="i18nUtils" class="org.splat.i18n.I18nUtils">
20                 <property name="resourceBundleMessageSource"
21                         ref="messageSource" />
22         </bean>
23
24         <bean id="messageSource"
25                 class="org.springframework.context.support.ResourceBundleMessageSource">
26                 <property name="basenames">
27                         <list>
28                                 <value>application</value>
29                                 <value>log-messages</value>
30                         </list>
31                 </property>
32         </bean>
33         <!-- ref 'baseMessageSource' into Siman-common\src\spring\globalContext.xml -->
34         <!-- property name="parentMessageSource" ref="baseMessageSource"/-->
35
36         <bean id="applicationSettings"
37                 class="org.splat.simer.ApplicationSettings">
38                 <property name="projectSettings" ref="projectSettings" />
39         </bean>
40
41         <bean id="importedStudy" class="org.splat.simer.admin.ImportedStudy"
42                 scope="prototype" />
43
44         <bean id="openStudy" class="org.splat.simer.OpenStudy"
45                 scope="session">
46                 <property name="projectElementService"
47                         ref="projectElementService" />
48                 <property name="projectSettings" ref="projectSettings" />
49                 <property name="publicationService" ref="publicationService" />
50                 <property name="scenarioService" ref="scenarioService" />
51                 <property name="stepService" ref="stepService" />
52                 <property name="repositoryService" ref="repositoryService" />
53         </bean>
54
55         <bean id="openKnowledge" class="org.splat.simer.OpenKnowledge"
56                 scope="session">
57                 <property name="projectElementService"
58                         ref="projectElementService" />
59                 <property name="projectSettings" ref="projectSettings" />
60         </bean>
61
62         <bean id="baseAction" class="org.splat.simer.Action"
63                 scope="prototype" abstract="true">
64                 <property name="openStudy" ref="openStudy" />
65                 <property name="openKnowledge" ref="openKnowledge" />
66         </bean>
67
68         <!--========= Inherited from baseAction =========-->
69
70         <bean id="newStudyAction" class="org.splat.simer.NewStudyAction"
71                 parent="baseAction" scope="prototype">
72                 <property name="simulationContextService"
73                         ref="simulationContextService" />
74                 <property name="studyService" ref="studyService" />
75         </bean>
76
77         <bean id="displayStudyStepAction"
78                 class="org.splat.simer.DisplayStudyStepAction" parent="baseAction"
79                 scope="prototype">
80                 <property name="studyService" ref="studyService" />
81         </bean>
82
83         <!--========= Inherited from displayStudyStepAction =========-->
84
85         <bean id="studyPropertiesAction"
86                 class="org.splat.simer.StudyPropertiesAction" scope="prototype"
87                 parent="displayStudyStepAction">
88         </bean>
89
90         <bean id="editStudyAction" class="org.splat.simer.EditStudyAction"
91                 scope="prototype" parent="displayStudyStepAction">
92         </bean>
93
94         <bean id="editScenarioPropertiesAction"
95                 class="org.splat.simer.EditScenarioPropertiesAction" scope="prototype"
96                 parent="displayStudyStepAction">
97                 <property name="projectElementService"
98                         ref="projectElementService" />
99                 <property name="scenarioService" ref="scenarioService" />
100         </bean>
101
102         <bean id="editSimulationContextAction"
103                 class="org.splat.simer.EditSimulationContextAction" scope="prototype"
104                 parent="displayStudyStepAction">
105                 <property name="stepService" ref="stepService" />
106                 <property name="simulationContextService"
107                         ref="simulationContextService" />
108         </bean>
109
110         <bean id="editDocumentAction"
111                 class="org.splat.simer.EditDocumentAction" scope="prototype"
112                 parent="displayStudyStepAction">
113                 <property name="publicationService" ref="publicationService" />
114                 <property name="repositoryService" ref="repositoryService" />
115         </bean>
116
117         <bean id="editKnowledgeElementAction"
118                 class="org.splat.simer.EditKnowledgeElementAction" scope="prototype"
119                 parent="displayStudyStepAction">
120                 <property name="knowledgeElementService"
121                         ref="knowledgeElementService" />
122                 <property name="scenarioService" ref="scenarioService" />
123         </bean>
124
125         <!-- End of Inherited from displayStudyStepAction -->
126
127         <bean id="startAction" class="org.splat.simer.StartAction"
128                 scope="prototype">
129                 <property name="applicationSettings" ref="applicationSettings" />
130                 <property name="projectSettings" ref="projectSettings" />
131         </bean>
132         <bean id="connectionAction" class="org.splat.simer.ConnectionAction"
133                 scope="prototype">
134         </bean>
135
136         <bean id="menuAction" class="org.splat.simer.MenuAction"
137                 scope="prototype">
138         </bean>
139
140         <bean id="notYetImplementedAction"
141                 class="org.splat.simer.NotYetImplementedAction" scope="prototype">
142         </bean>
143
144         <bean id="searchStudyAction"
145                 class="org.splat.simer.SearchStudyAction" scope="prototype">
146                 <property name="projectSettings" ref="projectSettings" />
147                 <property name="searchService" ref="searchService" />
148                 <property name="simulationContextService"
149                         ref="simulationContextService" />
150         </bean>
151
152         <bean id="searchKnowledgeAction"
153                 class="org.splat.simer.SearchKnowledgeAction" scope="prototype">
154                 <property name="searchService" ref="searchService" />
155                 <property name="simulationContextService"
156                         ref="simulationContextService" />
157         </bean>
158
159         <bean id="searchDocumentAction"
160                 class="org.splat.simer.SearchDocumentAction" scope="prototype">
161         </bean>
162
163         <bean id="displayKnowledgeAction"
164                 class="org.splat.simer.DisplayKnowledgeAction" scope="prototype">
165                 <property name="knowledgeElementService"
166                         ref="knowledgeElementService" />
167         </bean>
168
169         <bean id="newScenarioAction"
170                 class="org.splat.simer.NewScenarioAction" scope="prototype">
171                 <property name="projectElementService"
172                         ref="projectElementService" />
173                 <property name="studyService" ref="studyService" />
174         </bean>
175
176         <bean id="uploadAction" class="org.splat.simer.UploadAction"
177                 scope="prototype">
178                 <property name="repositoryService" ref="repositoryService" />
179         </bean>
180
181         <bean id="importDocumentAction"
182                 class="org.splat.simer.ImportDocumentAction" scope="prototype">
183                 <property name="stepService" ref="stepService" />
184                 <property name="projectSettings" ref="projectSettings" />
185                 <property name="publicationService" ref="publicationService" />
186                 <property name="repositoryService" ref="repositoryService" />
187         </bean>
188
189         <bean id="versionDocumentAction"
190                 class="org.splat.simer.VersionDocumentAction" scope="prototype">
191                 <property name="projectSettings" ref="projectSettings" />
192                 <property name="publicationService" ref="publicationService" />
193                 <property name="stepService" ref="stepService" />
194                 <property name="repositoryService" ref="repositoryService" />
195         </bean>
196
197         <bean id="databaseIndexingAction"
198                 class="org.splat.simer.admin.DatabaseIndexingAction"
199                 scope="prototype">
200                 <property name="studyService" ref="studyService" />
201                 <property name="importedStudy" ref="importedStudy" />
202                 <property name="searchService" ref="searchService" />
203         </bean>
204
205         <bean id="importUserAction"
206                 class="org.splat.simer.admin.ImportUserAction" scope="prototype">
207                 <property name="repositoryService" ref="repositoryService" />
208         </bean>
209
210         <bean id="simulationContextAction"
211                 class="org.splat.simer.admin.SimulationContextAction"
212                 scope="prototype">
213                 <property name="knowledgeElementService"
214                         ref="knowledgeElementService" />
215                 <property name="searchService" ref="searchService" />
216                 <property name="projectSettings" ref="projectSettings" />
217                 <property name="simulationContextService"
218                         ref="simulationContextService" />
219         </bean>
220
221         <bean id="knowledgeElementAction"
222                 class="org.splat.simer.admin.KnowledgeElementAction"
223                 scope="prototype">
224         </bean>
225
226         <bean id="saveDocumentAction"
227                 class="org.splat.module.SaveDocumentAction" scope="prototype">
228                 <property name="publicationService" ref="publicationService" />
229                 <property name="repositoryService" ref="repositoryService" />
230                 <property name="scenarioService" ref="scenarioService" />
231                 <property name="stepService" ref="stepService" />
232                 <property name="simulationContextService"
233                         ref="simulationContextService" />
234         </bean>
235
236 </beans>