summaryrefslogtreecommitdiffstats
path: root/sparkybe-onap-application/config
diff options
context:
space:
mode:
Diffstat (limited to 'sparkybe-onap-application/config')
-rw-r--r--sparkybe-onap-application/config/application.properties6
-rw-r--r--sparkybe-onap-application/config/spring-beans/sparky-aai-proxy.xml15
2 files changed, 18 insertions, 3 deletions
diff --git a/sparkybe-onap-application/config/application.properties b/sparkybe-onap-application/config/application.properties
index c0616b5..cdebe11 100644
--- a/sparkybe-onap-application/config/application.properties
+++ b/sparkybe-onap-application/config/application.properties
@@ -3,18 +3,18 @@
#
spring.mvc.favicon.enabled=false
-#possible values: camel,http,ssl,portal,fe-dev,fe-prod,oxm-default,oxm-override,[resources|gizmo],sync,oxm-schema-dev,oxm-schema-prod
+#possible values: camel,http,ssl,portal,fe-dev,fe-prod,oxm-default,oxm-override,[resources|gizmo],sync,oxm-schema-dev,oxm-schema-prod,aai-proxy
#For oxm loading there needs to be a combo of [oxm-default OR oxm-override] AND [oxm-schema-dev OR oxm-schema-prod]
#
# Gizmo profile
#
-spring.profiles.active=camel,ssl,fe-dev,oxm-schema-dev,gizmo,oxm-default
+spring.profiles.active=camel,http,oxm-default,oxm-schema-dev,fe-dev,resources,aai-proxy
#
# Resources profile
#
-#spring.profiles.active=camel,http,fe-dev,oxm-schema-dev,resources,sync,oxm-override
+#spring.profiles.active=camel,http,fe-dev,oxm-schema-dev,resources,sync,oxm-override,aai-proxy
portal.cadiFileLocation=${CONFIG_HOME}/portal/cadi.properties
searchservice.hostname=127.0.0.1
diff --git a/sparkybe-onap-application/config/spring-beans/sparky-aai-proxy.xml b/sparkybe-onap-application/config/spring-beans/sparky-aai-proxy.xml
new file mode 100644
index 0000000..bb0b98d
--- /dev/null
+++ b/sparkybe-onap-application/config/spring-beans/sparky-aai-proxy.xml
@@ -0,0 +1,15 @@
+<beans profile="aai-proxy" xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="
+ http://www.springframework.org/schema/beans
+ http://www.springframework.org/schema/beans/spring-beans.xsd">
+
+ <bean id="proxyClientAdapter" class="org.onap.aai.sparky.util.ProxyClient">
+ <constructor-arg ref="aaiRestEndpointConfig" />
+ </bean>
+
+ <bean id="proxyHelper" class="org.onap.aai.sparky.ProxyHelper">
+ <constructor-arg ref="proxyClientAdapter" />
+ </bean>
+
+</beans> \ No newline at end of file