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