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