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