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">
14 <context:property-placeholder
15 location="classpath:siman.properties,classpath:jdbc.properties"
16 ignore-unresolvable="true" />
18 <!-- configuration i18n -->
19 <bean id="i18nUtils" class="org.splat.i18n.I18nUtils">
20 <property name="resourceBundleMessageSource"
21 ref="messageSource" />
24 <bean id="messageSource"
25 class="org.springframework.context.support.ResourceBundleMessageSource">
26 <property name="basenames">
28 <value>application</value>
29 <value>log-messages</value>
33 <!-- ref 'baseMessageSource' into Siman-common\src\spring\globalContext.xml -->
34 <!-- property name="parentMessageSource" ref="baseMessageSource"/-->
36 <bean id="applicationSettings"
37 class="org.splat.simer.ApplicationSettings">
38 <property name="projectSettings" ref="projectSettings" />
41 <bean id="importedStudy" class="org.splat.simer.admin.ImportedStudy"
44 <bean id="slidMenu" scope="session" abstract="true">
45 <property name="projectElementService"
46 ref="projectElementService" />
47 <property name="scenarioService" ref="scenarioService" />
50 <bean id="studyMenu" class="org.splat.simer.StudyMenu"
51 scope="session" parent="slidMenu"/>
53 <bean id="newScenarioMenu" class="org.splat.simer.NewScenarioMenu"
54 scope="session" parent="slidMenu"/>
56 <bean id="openStudy" class="org.splat.simer.OpenStudy"
58 <property name="projectElementService"
59 ref="projectElementService" />
60 <property name="projectSettings" ref="projectSettings" />
61 <property name="publicationService" ref="publicationService" />
62 <property name="scenarioService" ref="scenarioService" />
63 <property name="stepService" ref="stepService" />
64 <property name="repositoryService" ref="repositoryService" />
65 <property name="menu" ref="studyMenu" />
68 <bean id="openKnowledge" class="org.splat.simer.OpenKnowledge"
70 <property name="projectElementService"
71 ref="projectElementService" />
72 <property name="projectSettings" ref="projectSettings" />
75 <bean id="baseAction" class="org.splat.simer.Action"
76 scope="prototype" abstract="true">
77 <property name="openStudy" ref="openStudy" />
78 <property name="openKnowledge" ref="openKnowledge" />
81 <!--========= Inherited from baseAction =========-->
83 <bean id="newStudyAction" class="org.splat.simer.NewStudyAction"
84 parent="baseAction" scope="prototype">
85 <property name="simulationContextService"
86 ref="simulationContextService" />
87 <property name="studyService" ref="studyService" />
90 <bean id="newScenarioAction"
91 class="org.splat.simer.NewScenarioAction" parent="baseAction"
93 <property name="projectElementService"
94 ref="projectElementService" />
95 <property name="studyService" ref="studyService" />
96 <property name="menu" ref="newScenarioMenu" />
99 <bean id="importDocumentAction"
100 class="org.splat.simer.ImportDocumentAction" scope="prototype"
102 <property name="stepService" ref="stepService" />
103 <property name="projectSettings" ref="projectSettings" />
104 <property name="publicationService" ref="publicationService" />
105 <property name="repositoryService" ref="repositoryService" />
108 <bean id="displayStudyStepAction"
109 class="org.splat.simer.DisplayStudyStepAction" parent="baseAction"
111 <property name="studyService" ref="studyService" />
114 <!--========= Inherited from displayStudyStepAction =========-->
116 <bean id="studyPropertiesAction"
117 class="org.splat.simer.StudyPropertiesAction" scope="prototype"
118 parent="displayStudyStepAction">
121 <bean id="editStudyAction" class="org.splat.simer.EditStudyAction"
122 scope="prototype" parent="displayStudyStepAction">
125 <bean id="editScenarioPropertiesAction"
126 class="org.splat.simer.EditScenarioPropertiesAction" scope="prototype"
127 parent="displayStudyStepAction">
128 <property name="projectElementService"
129 ref="projectElementService" />
130 <property name="scenarioService" ref="scenarioService" />
133 <bean id="editSimulationContextAction"
134 class="org.splat.simer.EditSimulationContextAction" scope="prototype"
135 parent="displayStudyStepAction">
136 <property name="stepService" ref="stepService" />
137 <property name="simulationContextService"
138 ref="simulationContextService" />
141 <bean id="editDocumentAction"
142 class="org.splat.simer.EditDocumentAction" scope="prototype"
143 parent="displayStudyStepAction">
144 <property name="publicationService" ref="publicationService" />
145 <property name="repositoryService" ref="repositoryService" />
148 <bean id="editKnowledgeElementAction"
149 class="org.splat.simer.EditKnowledgeElementAction" scope="prototype"
150 parent="displayStudyStepAction">
151 <property name="knowledgeElementService"
152 ref="knowledgeElementService" />
153 <property name="scenarioService" ref="scenarioService" />
156 <!-- End of Inherited from displayStudyStepAction -->
158 <bean id="startAction" class="org.splat.simer.StartAction"
160 <property name="applicationSettings" ref="applicationSettings" />
161 <property name="projectSettings" ref="projectSettings" />
163 <bean id="connectionAction" class="org.splat.simer.ConnectionAction"
167 <bean id="menuAction" class="org.splat.simer.MenuAction"
171 <bean id="notYetImplementedAction"
172 class="org.splat.simer.NotYetImplementedAction" scope="prototype">
175 <bean id="searchStudyAction"
176 class="org.splat.simer.SearchStudyAction" scope="prototype">
177 <property name="projectSettings" ref="projectSettings" />
178 <property name="searchService" ref="searchService" />
179 <property name="simulationContextService"
180 ref="simulationContextService" />
183 <bean id="searchKnowledgeAction"
184 class="org.splat.simer.SearchKnowledgeAction" scope="prototype">
185 <property name="searchService" ref="searchService" />
186 <property name="simulationContextService"
187 ref="simulationContextService" />
190 <bean id="searchDocumentAction"
191 class="org.splat.simer.SearchDocumentAction" scope="prototype">
194 <bean id="displayKnowledgeAction"
195 class="org.splat.simer.DisplayKnowledgeAction" scope="prototype">
196 <property name="knowledgeElementService"
197 ref="knowledgeElementService" />
200 <bean id="uploadAction" class="org.splat.simer.UploadAction"
202 <property name="repositoryService" ref="repositoryService" />
205 <bean id="versionDocumentAction"
206 class="org.splat.simer.VersionDocumentAction" scope="prototype">
207 <property name="projectSettings" ref="projectSettings" />
208 <property name="publicationService" ref="publicationService" />
209 <property name="stepService" ref="stepService" />
210 <property name="repositoryService" ref="repositoryService" />
213 <bean id="databaseIndexingAction"
214 class="org.splat.simer.admin.DatabaseIndexingAction"
216 <property name="studyService" ref="studyService" />
217 <property name="importedStudy" ref="importedStudy" />
218 <property name="searchService" ref="searchService" />
221 <bean id="importUserAction"
222 class="org.splat.simer.admin.ImportUserAction" scope="prototype">
223 <property name="repositoryService" ref="repositoryService" />
226 <bean id="simulationContextAction"
227 class="org.splat.simer.admin.SimulationContextAction"
229 <property name="knowledgeElementService"
230 ref="knowledgeElementService" />
231 <property name="searchService" ref="searchService" />
232 <property name="projectSettings" ref="projectSettings" />
233 <property name="simulationContextService"
234 ref="simulationContextService" />
237 <bean id="knowledgeElementAction"
238 class="org.splat.simer.admin.KnowledgeElementAction"
242 <bean id="saveDocumentAction"
243 class="org.splat.module.SaveDocumentAction" scope="prototype">
244 <property name="publicationService" ref="publicationService" />
245 <property name="repositoryService" ref="repositoryService" />
246 <property name="scenarioService" ref="scenarioService" />
247 <property name="stepService" ref="stepService" />
248 <property name="simulationContextService"
249 ref="simulationContextService" />