[SDC] Onboarding 1710 rebase.
[sdc.git] / openecomp-be / api / openecomp-sdc-rest-webapp / onboarding-rest-war / src / main / webapp / WEB-INF / beans-services.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:jaxrs="http://cxf.apache.org/jaxrs"
5        xmlns:context="http://www.springframework.org/schema/context"
6        xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
7        http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd
8        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
9
10
11     <import resource="classpath:META-INF/cxf/cxf.xml"/>
12     <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
13
14     <!-- CXF -->
15     <context:component-scan base-package="org.openecomp.sdcrests"/>
16     <!-- Needed for JSR-303 validations. May be removed when moving to JAX-RS 2.0 -->
17     <bean id="validator" class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean"/>
18
19     <!-- Needed for JSR-303 validations. May be removed when moving to JAX-RS 2.0 -->
20     <bean class="org.springframework.validation.beanvalidation.MethodValidationPostProcessor"/>
21
22     <bean id="jacksonObjectMapper" class="org.codehaus.jackson.map.ObjectMapper">
23         <property name="serializationInclusion" value="NON_NULL"/>
24     </bean>
25
26     <bean id="jsonProvider" class="org.codehaus.jackson.jaxrs.JacksonJsonProvider">
27         <property name="mapper" ref="jacksonObjectMapper"/>
28     </bean>
29
30     <bean id="outEmptyResponseInterceptor" class="org.openecomp.server.interceptors.EmptyOutputOutInterceptor"/>
31
32     <!-- ASDC -->
33     <bean id="vendorLicenseManager" class="org.openecomp.sdc.vendorlicense.impl.VendorLicenseManagerImpl"/>
34     <bean id="uploadValidationManager" class="org.openecomp.sdc.validation.impl.UploadValidationManagerImpl"/>
35     <bean id="actionManager" class="org.openecomp.sdc.action.impl.ActionManagerImpl"/>
36     <bean id="applicationConfigManager" class="org.openecomp.sdc.applicationconfig.impl.ApplicationConfigManagerImpl"/>
37
38     <!-- aspect beans -->
39     <bean id = "debugAspect" class="org.openecomp.sdc.logging.aspects.DebugAspect"/>
40     <bean id = "healthCheck" class="org.openecomp.sdcrests.health.rest.services.HealthCheckImpl"/>
41     <!--aop:config>
42         < aspect pointcuts>
43         <aop:pointcut id="loggingDebugPointcut" expression="execution(* org.openecomp.sdc.*.*.*(..))"/>
44
45         <advices>
46         <aop:aspect id="logDebugAspect" ref="debugAspect">
47             <aop:before pointcut-ref="loggingDebugPointcut" method="debugEnterMethod"/>
48             <aop:after-returning pointcut-ref="loggingDebugPointcut" method="debugExitMethod"/>
49         </aop:aspect>
50     </aop:config-->
51
52
53
54
55     <!-- RESTful Services -->
56     <jaxrs:server id="restContainer" address="/">
57
58         <jaxrs:serviceBeans>
59             <ref bean="vendorLicenseModels"/>
60             <ref bean="licenseAgreements"/>
61             <ref bean="featureGroups"/>
62             <ref bean="entitlementPools"/>
63             <ref bean="entitlementPoolLimits"/>
64             <ref bean="licenseKeyGroups"/>
65             <ref bean="licenseKeyGroupLimits"/>
66             <ref bean="vendorSoftwareProducts"/>
67             <ref bean="networks"/>
68             <ref bean="components"/>
69             <ref bean="nics"/>
70             <ref bean="computes"/>
71             <ref bean="processes"/>
72             <ref bean="componentProcesses"/>
73             <ref bean="validation"/>
74             <ref bean="actions"/>
75             <ref bean="applicationConfiguration"/>
76             <ref bean="componentMonitoringUploads"/>
77             <ref bean="deploymentFlavors"/>
78                 <ref bean="images"/>
79             <ref bean="orchestrationTemplateCandidate"/>
80             <ref bean="componentDependencyModel"/>
81             <ref bean="activityLog"/>
82             <ref bean="healthCheck"/>
83         </jaxrs:serviceBeans>
84
85         <jaxrs:providers>
86             <ref bean="jsonProvider"/>
87             <bean class="org.openecomp.sdc.action.errors.ActionExceptionMapper"/>
88             <bean class="org.openecomp.sdcrests.errors.DefaultExceptionMapper"/>
89         </jaxrs:providers>
90
91         <jaxrs:outInterceptors>
92             <ref bean="outEmptyResponseInterceptor"/>
93         </jaxrs:outInterceptors>
94     </jaxrs:server>
95
96 </beans>