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