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