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