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