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