]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/Siman/src/spring/applicationContext.xml
Salome HOME
ProjectSettings are now configured when the bean is created (without call to a struts...
[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>conf/log-messages</value>
29                                 <value>som</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="exceptionAction" class="org.splat.simer.ExceptionAction"
37                 scope="prototype" />
38
39         <bean id="applicationSettings"
40                 class="org.splat.simer.ApplicationSettings" scope="session">
41                 <property name="projectSettings" ref="projectSettings" />
42                 <property name="documentTypeService" ref="documentTypeService" />
43         </bean>
44
45         <bean id="redirectOnEndOfSessionInterceptor"
46                 class="org.splat.simer.SimanRedirectOnEndOfSessionInterceptor">
47                 <property name="globalResult" value="home" />
48         </bean>
49
50         <bean id="menuBarSettings" class="org.splat.simer.MenuBarSettings"
51                 scope="session" />
52
53         <bean id="titleBarSettings" class="org.splat.simer.TitleBarSettings"
54                 scope="session" />
55
56         <bean id="toolBarSettings" class="org.splat.simer.ToolBarSettings"
57                 scope="session" />
58
59         <bean id="leftMenuSettings" class="org.splat.simer.LeftMenuSettings"
60                 scope="session" />
61
62         <bean id="slidMenu" scope="session" abstract="true">
63                 <property name="projectElementService"
64                         ref="projectElementService" />
65                 <property name="scenarioService" ref="scenarioService" />
66         </bean>
67
68         <bean id="studyMenu" class="org.splat.simer.StudyMenu"
69                 scope="session" parent="slidMenu" />
70
71         <bean id="newScenarioMenu" class="org.splat.simer.NewScenarioMenu"
72                 scope="session" parent="slidMenu" />
73
74         <bean id="openObject" abstract="true"
75                 class="org.splat.simer.AbstractOpenObject" scope="session">
76                 <property name="applicationSettings" ref="applicationSettings" />
77                 <property name="projectElementService"
78                         ref="projectElementService" />
79                 <property name="projectSettings" ref="projectSettings" />
80                 <property name="knowledgeElementTypeService"
81                         ref="knowledgeElementTypeService" />
82                 <property name="publicationService" ref="publicationService" />
83         </bean>
84
85         <bean id="openStudy" class="org.splat.simer.OpenStudy"
86                 parent="openObject" scope="session">
87                 <property name="projectElementService"
88                         ref="projectElementService" />
89                 <property name="studyService" ref="studyService" />
90                 <property name="stepService" ref="stepService" />
91                 <property name="repositoryService" ref="repositoryService" />
92                 <property name="menu" ref="studyMenu" />
93                 <property name="documentTypeService" ref="documentTypeService" />
94                 <property name="documentService" ref="documentService" />
95         </bean>
96
97         <bean id="openKnowledge" class="org.splat.simer.OpenKnowledge"
98                 parent="openObject" scope="session" />
99
100         <bean id="invalidateAction"
101                 class="org.splat.simer.InvalidateAction" />
102
103         <bean id="baseAction" class="org.splat.simer.Action"
104                 scope="prototype" abstract="true">
105                 <property name="applicationSettings" ref="applicationSettings" />
106                 <property name="openStudy" ref="openStudy" />
107                 <property name="openKnowledge" ref="openKnowledge" />
108                 <property name="menuBarSettings" ref="menuBarSettings" />
109                 <property name="titleBarSettings" ref="titleBarSettings" />
110                 <property name="toolBarSettings" ref="toolBarSettings" />
111                 <property name="leftMenuSettings" ref="leftMenuSettings" />
112         </bean>
113
114         <!--========= Inherited from baseAction ========= -->
115
116         <bean id="newStudyAction" class="org.splat.simer.NewStudyAction"
117                 parent="baseAction" scope="prototype">
118                 <property name="simulationContextService"
119                         ref="simulationContextService" />
120                 <property name="scenarioService" ref="scenarioService" />
121         </bean>
122
123         <bean id="newScenarioAction"
124                 class="org.splat.simer.NewScenarioAction" parent="baseAction"
125                 scope="prototype">
126                 <property name="projectElementService"
127                         ref="projectElementService" />
128                 <property name="scenarioService" ref="scenarioService" />
129                 <property name="menu" ref="newScenarioMenu" />
130         </bean>
131
132         <bean id="checkoutAction" class="org.splat.simer.CheckoutAction"
133                 scope="prototype">
134                 <property name="scenarioService" ref="scenarioService" />
135         </bean>
136
137         <bean id="importDocumentAction"
138                 class="org.splat.simer.ImportDocumentAction" scope="prototype"
139                 parent="baseAction">
140                 <property name="studyService" ref="studyService" />
141                 <property name="stepService" ref="stepService" />
142                 <property name="projectSettings" ref="projectSettings" />
143                 <property name="publicationService" ref="publicationService" />
144                 <property name="repositoryService" ref="repositoryService" />
145                 <property name="documentService" ref="documentService" />
146                 <property name="documentTypeService" ref="documentTypeService" />
147         </bean>
148
149         <bean id="displayStudyStepAction"
150                 class="org.splat.simer.DisplayStudyStepAction" parent="baseAction"
151                 scope="prototype">
152                 <property name="studyService" ref="studyService" />
153         </bean>
154
155         <bean id="removeStudyAction"
156                 class="org.splat.simer.RemoveStudyAction" scope="prototype"
157                 parent="baseAction">
158                 <property name="studyService" ref="studyService" />
159         </bean>
160
161         <!--========= Inherited from displayStudyStepAction ========= -->
162
163         <bean id="studyPropertiesAction"
164                 class="org.splat.simer.StudyPropertiesAction" scope="prototype"
165                 parent="displayStudyStepAction">
166                 <property name="documentTypeService" ref="documentTypeService" />
167                 <property name="userService" ref="userService" />
168         </bean>
169
170         <bean id="editStudyAction" class="org.splat.simer.EditStudyAction"
171                 scope="prototype" parent="displayStudyStepAction" />
172
173         <bean id="editScenarioPropertiesAction"
174                 class="org.splat.simer.EditScenarioPropertiesAction" scope="prototype"
175                 parent="displayStudyStepAction">
176                 <property name="projectElementService"
177                         ref="projectElementService" />
178                 <property name="scenarioService" ref="scenarioService" />
179         </bean>
180
181         <bean id="editSimulationContextAction"
182                 class="org.splat.simer.EditSimulationContextAction" scope="prototype"
183                 parent="displayStudyStepAction">
184                 <property name="stepService" ref="stepService" />
185                 <property name="simulationContextService"
186                         ref="simulationContextService" />
187                 <property name="simulationContextTypeService"
188                         ref="simulationContextTypeService" />
189         </bean>
190
191         <bean id="editDocumentAction"
192                 class="org.splat.simer.EditDocumentAction" scope="prototype"
193                 parent="displayStudyStepAction">
194                 <property name="stepService" ref="stepService" />
195                 <property name="publicationService" ref="publicationService" />
196                 <property name="repositoryService" ref="repositoryService" />
197         </bean>
198
199         <bean id="editKnowledgeElementAction"
200                 class="org.splat.simer.EditKnowledgeElementAction" scope="prototype"
201                 parent="displayStudyStepAction">
202                 <property name="knowledgeElementService"
203                         ref="knowledgeElementService" />
204                 <property name="knowledgeElementTypeService"
205                         ref="knowledgeElementTypeService" />
206                 <property name="scenarioService" ref="scenarioService" />
207         </bean>
208
209         <bean id="editStepCommentAction"
210                 class="org.splat.simer.EditStepCommentAction" scope="prototype"
211                 parent="displayStudyStepAction">
212                 <property name="stepService" ref="stepService" />
213         </bean>
214
215         <bean id="editStudyDescriptionAction"
216                 class="org.splat.simer.EditStudyDescriptionAction" scope="prototype"
217                 parent="displayStudyStepAction" />
218
219
220         <!-- bean id="CompareStudyAction"
221                 class="org.splat.simer.CompareStudyAction" scope="prototype"
222                 parent="displayStudyStepAction">
223                 <property name="studyService" ref="studyService" />
224                 </bean-->
225
226         <!-- End of Inherited from displayStudyStepAction -->
227
228         <bean id="startAction" class="org.splat.simer.StartAction"
229                 scope="prototype" parent="baseAction" />
230
231         <bean id="connectionAction" class="org.splat.simer.ConnectionAction"
232                 scope="prototype" parent="baseAction" />
233
234         <bean id="menuAction" class="org.splat.simer.MenuAction"
235                 scope="prototype" parent="baseAction" />
236
237         <bean id="notYetImplementedAction"
238                 class="org.splat.simer.NotYetImplementedAction" scope="prototype"
239                 parent="baseAction" />
240
241         <bean id="searchStudyAction"
242                 class="org.splat.simer.SearchStudyAction" scope="prototype"
243                 parent="baseAction">
244                 <property name="stepsConfigService" ref="stepsConfigService" />
245                 <property name="searchService" ref="searchService" />
246                 <property name="simulationContextService"
247                         ref="simulationContextService" />
248                 <property name="userService" ref="userService" />
249         </bean>
250
251         <bean id="searchKnowledgeAction"
252                 class="org.splat.simer.SearchKnowledgeAction" scope="prototype"
253                 parent="baseAction">
254                 <property name="searchService" ref="searchService" />
255                 <property name="simulationContextService"
256                         ref="simulationContextService" />
257                 <property name="knowledgeElementTypeService"
258                         ref="knowledgeElementTypeService" />
259                 <property name="userService" ref="userService" />
260         </bean>
261
262         <bean id="searchDocumentAction"
263                 class="org.splat.simer.SearchDocumentAction" scope="prototype" />
264
265         <bean id="displayKnowledgeAction"
266                 class="org.splat.simer.DisplayKnowledgeAction" scope="prototype"
267                 parent="baseAction">
268                 <property name="knowledgeElementService"
269                         ref="knowledgeElementService" />
270         </bean>
271
272         <bean id="uploadAction" class="org.splat.simer.UploadAction"
273                 scope="prototype" parent="baseAction">
274                 <property name="repositoryService" ref="repositoryService" />
275         </bean>
276
277         <bean id="uploadStudyAction"
278                 class="org.splat.simer.UploadStudyAction" scope="prototype"
279                 parent="baseAction" />
280
281         <bean id="versionDocumentAction"
282                 class="org.splat.simer.VersionDocumentAction" scope="prototype"
283                 parent="baseAction">
284                 <property name="projectSettings" ref="projectSettings" />
285                 <property name="publicationService" ref="publicationService" />
286                 <property name="stepService" ref="stepService" />
287                 <property name="studyService" ref="studyService" />
288                 <property name="repositoryService" ref="repositoryService" />
289         </bean>
290
291         <bean id="databaseIndexingAction"
292                 class="org.splat.simer.admin.DatabaseIndexingAction" scope="prototype"
293                 parent="baseAction">
294                 <property name="searchService" ref="searchService" />
295         </bean>
296
297         <bean id="importUserAction"
298                 class="org.splat.simer.admin.ImportUserAction" scope="prototype"
299                 parent="baseAction">
300                 <property name="repositoryService" ref="repositoryService" />
301                 <property name="userService" ref="userService" />
302         </bean>
303
304         <bean id="simulationContextAction"
305                 class="org.splat.simer.admin.SimulationContextAction"
306                 scope="prototype" parent="baseAction">
307                 <property name="knowledgeElementService"
308                         ref="knowledgeElementService" />
309                 <property name="searchService" ref="searchService" />
310                 <property name="projectSettings" ref="projectSettings" />
311                 <property name="simulationContextService"
312                         ref="simulationContextService" />
313         </bean>
314
315         <bean id="knowledgeElementAction"
316                 class="org.splat.simer.admin.KnowledgeElementAction"
317                 scope="prototype" />
318
319 </beans>