summaryrefslogtreecommitdiffstats
path: root/sparkybe-onap-application/config/spring-beans
diff options
context:
space:
mode:
Diffstat (limited to 'sparkybe-onap-application/config/spring-beans')
-rw-r--r--sparkybe-onap-application/config/spring-beans/sparky-oxm-default.xml3
-rw-r--r--sparkybe-onap-application/config/spring-beans/sparky-oxm-override.xml2
-rw-r--r--sparkybe-onap-application/config/spring-beans/sparky-oxm.xml8
3 files changed, 9 insertions, 4 deletions
diff --git a/sparkybe-onap-application/config/spring-beans/sparky-oxm-default.xml b/sparkybe-onap-application/config/spring-beans/sparky-oxm-default.xml
index 98ce1ad..b44d626 100644
--- a/sparkybe-onap-application/config/spring-beans/sparky-oxm-default.xml
+++ b/sparkybe-onap-application/config/spring-beans/sparky-oxm-default.xml
@@ -3,11 +3,12 @@
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">
-
+
<bean id="oxmModelLoader" class="org.onap.aai.sparky.config.oxm.OxmModelLoader"
init-method="loadModel">
<constructor-arg ref="oxmModelProcessorSet" />
<constructor-arg ref="nodeIngestor" />
+ <constructor-arg ref="schemaVersions" />
</bean>
</beans> \ No newline at end of file
diff --git a/sparkybe-onap-application/config/spring-beans/sparky-oxm-override.xml b/sparkybe-onap-application/config/spring-beans/sparky-oxm-override.xml
index 5c6839b..3c2d76b 100644
--- a/sparkybe-onap-application/config/spring-beans/sparky-oxm-override.xml
+++ b/sparkybe-onap-application/config/spring-beans/sparky-oxm-override.xml
@@ -6,7 +6,7 @@
<bean id="oxmModelLoader" class="org.onap.aai.sparky.config.oxm.OxmModelLoader"
init-method="loadModel">
- <constructor-arg name="apiVersionOverride" value="${oxm.apiVersionOverride}" />
+ <constructor-arg name="apiVersionOverride" value="${oxm.apiVersion}" />
<constructor-arg ref="oxmModelProcessorSet" />
<constructor-arg ref="nodeIngestor" />
</bean>
diff --git a/sparkybe-onap-application/config/spring-beans/sparky-oxm.xml b/sparkybe-onap-application/config/spring-beans/sparky-oxm.xml
index fe1eab0..c392153 100644
--- a/sparkybe-onap-application/config/spring-beans/sparky-oxm.xml
+++ b/sparkybe-onap-application/config/spring-beans/sparky-oxm.xml
@@ -42,9 +42,13 @@
<property name="edgeDirectory" value="${edgeDir}" />
</bean>
- <bean id="oxmConfigTranslator" class="org.onap.aai.sparky.config.oxm.OxmConfigTranslator">
- <constructor-arg ref="schemaLocationsBean" />
+ <bean id="schemaVersions" class="org.onap.aai.setup.SchemaVersions"/>
+
+ <bean id="oxmConfigTranslator" class="org.onap.aai.setup.AAIConfigTranslator">
+ <constructor-arg ref="schemaLocationsBean" />
+ <constructor-arg ref="schemaVersions" />
</bean>
+
<bean id="nodeIngestor" class="org.onap.aai.nodes.NodeIngestor">
<constructor-arg ref="oxmConfigTranslator" />
</bean>