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">
10 <import resource="classpath:META-INF/cxf/cxf.xml"/>
11 <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
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"/>
18 <!-- Needed for JSR-303 validations. May be removed when moving to JAX-RS 2.0 -->
19 <bean class="org.springframework.validation.beanvalidation.MethodValidationPostProcessor"/>
21 <bean id="jacksonObjectMapper" class="org.codehaus.jackson.map.ObjectMapper">
22 <property name="serializationInclusion" value="NON_NULL"/>
25 <bean id="jsonProvider" class="org.codehaus.jackson.jaxrs.JacksonJsonProvider">
26 <property name="mapper" ref="jacksonObjectMapper"/>
29 <bean id="outEmptyResponseInterceptor" class="org.openecomp.server.interceptors.EmptyOutputOutInterceptor"/>
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"/>
38 <!-- RESTful Services -->
39 <jaxrs:server id="restContainer" address="/">
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"/>
51 <ref bean="processes"/>
52 <ref bean="componentProcesses"/>
53 <ref bean="validation"/>
55 <ref bean="applicationConfiguration"/>
56 <ref bean="componentUploads"/>
60 <ref bean="jsonProvider"/>
61 <bean class="org.openecomp.sdc.action.errors.ActionExceptionMapper"/>
62 <bean class="org.openecomp.sdcrests.errors.DefaultExceptionMapper"/>
65 <jaxrs:outInterceptors>
66 <ref bean="outEmptyResponseInterceptor"/>
67 </jaxrs:outInterceptors>