Salome HOME
efe62eb1539456e35f7fa15bff423dd34176458c
[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         xsi:schemaLocation="http://www.springframework.org/schema/beans  
6 http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
7 http://www.springframework.org/schema/aop  
8 http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">
9            
10            
11         <!-- configuration i18n -->
12         <bean id="i18nUtils"
13                 class="org.splat.i18n.I18nUtils">
14                 <property name="resourceBundleMessageSource"
15                         ref="messageSource" />
16         </bean>
17
18         <bean id="messageSource"
19                 class="org.springframework.context.support.ResourceBundleMessageSource">
20                 <property name="basenames">
21                         <list>
22                                 <value>application</value>
23                                 <value>log-messages</value>
24                         </list>
25                 </property>
26         </bean>
27     <!-- ref 'baseMessageSource' into Siman-common\src\spring\globalContext.xml -->
28         <!-- property name="parentMessageSource" ref="baseMessageSource"/-->
29         
30                 <bean id="applicationSettings"
31                 class="org.splat.simer.ApplicationSettings">
32                 <property name="projectSettings" ref="projectSettings" />
33         </bean>
34
35         <bean id="importedStudy" class="org.splat.simer.admin.ImportedStudy"
36                 scope="prototype" />
37
38         <bean id="openStudy" class="org.splat.simer.OpenStudy"
39                 scope="session">
40                 <property name="projectElementService"
41                         ref="projectElementService" />
42                 <property name="projectSettings" ref="projectSettings" />
43                 <property name="publicationService" ref="publicationService" />
44                 <property name="scenarioService" ref="scenarioService" />
45                 <property name="stepService" ref="stepService" />
46         </bean>
47
48         <bean id="openKnowledge" class="org.splat.simer.OpenKnowledge"
49                 scope="session">
50                 <property name="projectElementService"
51                         ref="projectElementService" />
52                 <property name="projectSettings" ref="projectSettings" />
53         </bean>
54
55         <bean id="baseAction" class="org.splat.simer.Action"
56                 scope="prototype" abstract="true">
57                 <property name="openStudy" ref="openStudy" />
58                 <property name="openKnowledge" ref="openKnowledge" />
59         </bean>
60
61     <!--========= Inherited from baseAction =========-->
62     
63     <bean id="newStudyAction" class="org.splat.simer.NewStudyAction"
64         parent="baseAction" scope="prototype">
65         <property name="studyService" ref="studyService" />
66     </bean>
67
68         <bean id="displayStudyStepAction"
69                 class="org.splat.simer.DisplayStudyStepAction" parent="baseAction"
70                 scope="prototype">
71                 <property name="studyService" ref="studyService" />
72         </bean>
73
74     <!--========= Inherited from displayStudyStepAction =========-->
75     
76         <bean id="studyPropertiesAction"
77                 class="org.splat.simer.StudyPropertiesAction" scope="prototype"
78                 parent="displayStudyStepAction">
79         </bean>
80
81         <bean id="editStudyAction" class="org.splat.simer.EditStudyAction"
82                 scope="prototype" parent="displayStudyStepAction">
83         </bean>
84
85         <bean id="editScenarioPropertiesAction"
86                 class="org.splat.simer.EditScenarioPropertiesAction" scope="prototype"
87                 parent="displayStudyStepAction">
88                 <property name="projectElementService"
89                         ref="projectElementService" />
90                 <property name="scenarioService" ref="scenarioService" />
91         </bean>
92
93         <bean id="editSimulationContextAction"
94                 class="org.splat.simer.EditSimulationContextAction" scope="prototype"
95                 parent="displayStudyStepAction">
96                 <property name="stepService" ref="stepService" />
97         </bean>
98
99         <bean id="editDocumentAction"
100                 class="org.splat.simer.EditDocumentAction" scope="prototype"
101                 parent="displayStudyStepAction">
102                 <property name="publicationService" ref="publicationService" />
103         </bean>
104
105         <bean id="editKnowledgeElementAction"
106                 class="org.splat.simer.EditKnowledgeElementAction" scope="prototype"
107                 parent="displayStudyStepAction">
108                 <property name="knowledgeElementService"
109                         ref="knowledgeElementService" />
110                 <property name="scenarioService" ref="scenarioService" />
111         </bean>
112
113     <!-- End of Inherited from displayStudyStepAction -->
114     
115         <bean id="startAction" class="org.splat.simer.StartAction"
116                 scope="prototype">
117                 <property name="applicationSettings" ref="applicationSettings" />
118                 <property name="projectSettings" ref="projectSettings" />
119         </bean>
120         <bean id="connectionAction" class="org.splat.simer.ConnectionAction"
121                 scope="prototype">
122         </bean>
123
124         <bean id="menuAction" class="org.splat.simer.MenuAction"
125                 scope="prototype">
126         </bean>
127
128         <bean id="notYetImplementedAction"
129                 class="org.splat.simer.NotYetImplementedAction" scope="prototype">
130         </bean>
131
132         <bean id="searchStudyAction"
133                 class="org.splat.simer.SearchStudyAction" scope="prototype">
134                 <property name="projectSettings" ref="projectSettings" />
135                 <property name="searchService" ref="searchService" />
136         </bean>
137
138         <bean id="searchKnowledgeAction"
139                 class="org.splat.simer.SearchKnowledgeAction" scope="prototype">
140                 <property name="searchService" ref="searchService" />
141         </bean>
142
143         <bean id="searchDocumentAction"
144                 class="org.splat.simer.SearchDocumentAction" scope="prototype">
145         </bean>
146
147         <bean id="displayKnowledgeAction"
148                 class="org.splat.simer.DisplayKnowledgeAction" scope="prototype">
149                 <property name="knowledgeElementService"
150                         ref="knowledgeElementService" />
151         </bean>
152
153         <bean id="newScenarioAction"
154                 class="org.splat.simer.NewScenarioAction" scope="prototype">
155                 <property name="projectElementService"
156                         ref="projectElementService" />
157                 <property name="studyService" ref="studyService" />
158         </bean>
159
160         <bean id="uploadAction" class="org.splat.simer.UploadAction"
161                 scope="prototype">
162         </bean>
163
164         <bean id="importDocumentAction"
165                 class="org.splat.simer.ImportDocumentAction" scope="prototype">
166                 <property name="stepService" ref="stepService" />
167                 <property name="projectSettings" ref="projectSettings" />
168                 <property name="publicationService" ref="publicationService" />
169         </bean>
170
171         <bean id="versionDocumentAction"
172                 class="org.splat.simer.VersionDocumentAction" scope="prototype">
173                 <property name="projectSettings" ref="projectSettings" />
174                 <property name="publicationService" ref="publicationService" />
175                 <property name="stepService" ref="stepService" />
176         </bean>
177
178         <bean id="databaseIndexingAction"
179                 class="org.splat.simer.admin.DatabaseIndexingAction"
180                 scope="prototype">
181                 <property name="studyService" ref="studyService" />
182                 <property name="importedStudy" ref="importedStudy" />
183                 <property name="searchService" ref="searchService" />
184         </bean>
185
186         <bean id="importUserAction"
187                 class="org.splat.simer.admin.ImportUserAction" scope="prototype">
188         </bean>
189
190         <bean id="simulationContextAction"
191                 class="org.splat.simer.admin.SimulationContextAction"
192                 scope="prototype">
193                 <property name="knowledgeElementService"
194                         ref="knowledgeElementService" />
195                 <property name="searchService" ref="searchService" />
196                 <property name="projectSettings" ref="projectSettings" />
197         </bean>
198
199         <bean id="knowledgeElementAction"
200                 class="org.splat.simer.admin.KnowledgeElementAction"
201                 scope="prototype">
202         </bean>
203
204         <bean id="saveDocumentAction"
205                 class="org.splat.module.SaveDocumentAction" scope="prototype">
206                 <property name="publicationService" ref="publicationService" />
207                 <property name="scenarioService" ref="scenarioService" />
208                 <property name="stepService" ref="stepService" />
209         </bean>
210
211 </beans>