push addional code
[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     <import resource="classpath:META-INF/cxf/cxf.xml"/>
11     <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
12
13     <!-- CXF -->
14     <context:component-scan base-package="org.openecomp.sdcrests"/>
15     <!-- Needed for JSR-303 validations. May be removed when moving to JAX-RS 2.0 -->
16     <bean id="validator" class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean"/>
17
18     <!-- Needed for JSR-303 validations. May be removed when moving to JAX-RS 2.0 -->
19     <bean class="org.springframework.validation.beanvalidation.MethodValidationPostProcessor"/>
20
21     <bean id="jacksonObjectMapper" class="org.codehaus.jackson.map.ObjectMapper">
22         <property name="serializationInclusion" value="NON_NULL"/>
23     </bean>
24
25     <bean id="jsonProvider" class="org.codehaus.jackson.jaxrs.JacksonJsonProvider">
26         <property name="mapper" ref="jacksonObjectMapper"/>
27     </bean>
28
29     <bean id="outEmptyResponseInterceptor" class="org.openecomp.server.interceptors.EmptyOutputOutInterceptor"/>
30
31     <!-- ASDC -->
32     <bean id="vendorLicenseManager" class="org.openecomp.sdc.vendorlicense.impl.VendorLicenseManagerImpl"/>
33     <bean id="vendorSoftwareProductManager" class="org.openecomp.sdc.vendorsoftwareproduct.impl.VendorSoftwareProductManagerImpl"/>
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     <!-- RESTful Services -->
39     <jaxrs:server id="restContainer" address="/">
40
41         <jaxrs:serviceBeans>
42             <ref bean="vendorLicenseModels"/>
43             <ref bean="licenseAgreements"/>
44             <ref bean="featureGroups"/>
45             <ref bean="entitlementPools"/>
46             <ref bean="licenseKeyGroups"/>
47             <ref bean="vendorSoftwareProducts"/>
48             <ref bean="networks"/>
49             <ref bean="components"/>
50             <ref bean="nics"/>
51             <ref bean="processes"/>
52             <ref bean="componentProcesses"/>
53             <ref bean="validation"/>
54             <ref bean="actions"/>
55             <ref bean="applicationConfiguration"/>
56             <ref bean="componentUploads"/>
57         </jaxrs:serviceBeans>
58
59         <jaxrs:providers>
60             <ref bean="jsonProvider"/>
61             <bean class="org.openecomp.sdc.action.errors.ActionExceptionMapper"/>
62             <bean class="org.openecomp.sdcrests.errors.DefaultExceptionMapper"/>
63         </jaxrs:providers>
64
65         <jaxrs:outInterceptors>
66             <ref bean="outEmptyResponseInterceptor"/>
67         </jaxrs:outInterceptors>
68     </jaxrs:server>
69
70 </beans>