]> SALOME platform Git repositories - tools/siman.git/blobdiff - 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
index bd1b83a952e0d2d7db2170ba83eb3138e39fd987..62240ae9b2b0d7c6650e626dd66408fd269c8c83 100644 (file)
@@ -36,6 +36,7 @@ http://www.springframework.org/schema/context/spring-context-3.0.xsd">
        <bean id="applicationSettings"
                class="org.splat.simer.ApplicationSettings">
                <property name="projectSettings" ref="projectSettings" />
+               <property name="documentTypeService" ref="documentTypeService" />
        </bean>
 
        <bean id="importedStudy" class="org.splat.simer.admin.ImportedStudy"
@@ -47,29 +48,35 @@ http://www.springframework.org/schema/context/spring-context-3.0.xsd">
                <property name="scenarioService" ref="scenarioService" />
        </bean>
 
-    <bean id="studyMenu" class="org.splat.simer.StudyMenu"
-        scope="session" parent="slidMenu"/>
+       <bean id="studyMenu" class="org.splat.simer.StudyMenu"
+               scope="session" parent="slidMenu" />
 
-    <bean id="newScenarioMenu" class="org.splat.simer.NewScenarioMenu"
-        scope="session" parent="slidMenu"/>
+       <bean id="newScenarioMenu" class="org.splat.simer.NewScenarioMenu"
+               scope="session" parent="slidMenu" />
 
-       <bean id="openStudy" class="org.splat.simer.OpenStudy"
-               scope="session">
+       <bean id="openObject" abstract="true"
+               class="org.splat.simer.OpenObject" scope="session">
                <property name="projectElementService"
                        ref="projectElementService" />
                <property name="projectSettings" ref="projectSettings" />
+               <property name="knowledgeElementTypeService"
+                       ref="knowledgeElementTypeService" />
+       </bean>
+
+       <bean id="openStudy" class="org.splat.simer.OpenStudy"
+               parent="openObject" scope="session">
+               <property name="projectElementService"
+                       ref="projectElementService" />
                <property name="publicationService" ref="publicationService" />
-               <property name="scenarioService" ref="scenarioService" />
+               <property name="studyService" ref="studyService" />
                <property name="stepService" ref="stepService" />
-        <property name="repositoryService" ref="repositoryService" />
-        <property name="menu" ref="studyMenu" />
+               <property name="repositoryService" ref="repositoryService" />
+               <property name="menu" ref="studyMenu" />
+               <property name="documentTypeService" ref="documentTypeService" />
        </bean>
 
        <bean id="openKnowledge" class="org.splat.simer.OpenKnowledge"
-               scope="session">
-               <property name="projectElementService"
-                       ref="projectElementService" />
-               <property name="projectSettings" ref="projectSettings" />
+               parent="openObject" scope="session">
        </bean>
 
        <bean id="baseAction" class="org.splat.simer.Action"
@@ -92,8 +99,8 @@ http://www.springframework.org/schema/context/spring-context-3.0.xsd">
                scope="prototype">
                <property name="projectElementService"
                        ref="projectElementService" />
-               <property name="studyService" ref="studyService" />
-        <property name="menu" ref="newScenarioMenu" />
+               <property name="scenarioService" ref="scenarioService" />
+               <property name="menu" ref="newScenarioMenu" />
        </bean>
 
        <bean id="importDocumentAction"
@@ -103,6 +110,7 @@ http://www.springframework.org/schema/context/spring-context-3.0.xsd">
                <property name="projectSettings" ref="projectSettings" />
                <property name="publicationService" ref="publicationService" />
                <property name="repositoryService" ref="repositoryService" />
+               <property name="documentTypeService" ref="documentTypeService" />
        </bean>
 
        <bean id="displayStudyStepAction"
@@ -116,6 +124,7 @@ http://www.springframework.org/schema/context/spring-context-3.0.xsd">
        <bean id="studyPropertiesAction"
                class="org.splat.simer.StudyPropertiesAction" scope="prototype"
                parent="displayStudyStepAction">
+               <property name="documentTypeService" ref="documentTypeService" />
        </bean>
 
        <bean id="editStudyAction" class="org.splat.simer.EditStudyAction"
@@ -141,6 +150,7 @@ http://www.springframework.org/schema/context/spring-context-3.0.xsd">
        <bean id="editDocumentAction"
                class="org.splat.simer.EditDocumentAction" scope="prototype"
                parent="displayStudyStepAction">
+               <property name="stepService" ref="stepService" />
                <property name="publicationService" ref="publicationService" />
                <property name="repositoryService" ref="repositoryService" />
        </bean>
@@ -150,6 +160,8 @@ http://www.springframework.org/schema/context/spring-context-3.0.xsd">
                parent="displayStudyStepAction">
                <property name="knowledgeElementService"
                        ref="knowledgeElementService" />
+               <property name="knowledgeElementTypeService"
+                       ref="knowledgeElementTypeService" />
                <property name="scenarioService" ref="scenarioService" />
        </bean>
 
@@ -185,6 +197,8 @@ http://www.springframework.org/schema/context/spring-context-3.0.xsd">
                <property name="searchService" ref="searchService" />
                <property name="simulationContextService"
                        ref="simulationContextService" />
+               <property name="knowledgeElementTypeService"
+                       ref="knowledgeElementTypeService" />
        </bean>
 
        <bean id="searchDocumentAction"
@@ -241,6 +255,7 @@ http://www.springframework.org/schema/context/spring-context-3.0.xsd">
 
        <bean id="saveDocumentAction"
                class="org.splat.module.SaveDocumentAction" scope="prototype">
+               <property name="documentTypeService" ref="documentTypeService" />
                <property name="publicationService" ref="publicationService" />
                <property name="repositoryService" ref="repositoryService" />
                <property name="scenarioService" ref="scenarioService" />