589406df720fcf86167a63e64866c8b3ba1c2e74
[sdc.git] /
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
7        http://www.springframework.org/schema/beans/spring-beans.xsd
8        http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd
9        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
10
11
12     <import resource="classpath:META-INF/cxf/cxf.xml"/>
13     <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
14
15     <!-- CXF -->
16     <context:component-scan base-package="org.openecomp.sdcrests"/>
17     <!-- Needed for JSR-303 validations. May be removed when moving to JAX-RS 2.0 -->
18     <bean id="validator" class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean"/>
19
20     <!-- Needed for JSR-303 validations. May be removed when moving to JAX-RS 2.0 -->
21     <bean class="org.springframework.validation.beanvalidation.MethodValidationPostProcessor"/>
22
23     <bean id="jacksonObjectMapper" class="org.codehaus.jackson.map.ObjectMapper">
24         <property name="serializationInclusion" value="NON_NULL"/>
25     </bean>
26
27     <bean id="jsonProvider" class="org.codehaus.jackson.jaxrs.JacksonJsonProvider">
28         <property name="mapper" ref="jacksonObjectMapper"/>
29     </bean>
30
31     <bean id="outEmptyResponseInterceptor" class="org.openecomp.server.interceptors.EmptyOutputOutInterceptor"/>
32
33     <!-- ASDC -->
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 = "healthCheck" class="org.openecomp.sdcrests.health.rest.services.HealthCheckImpl"/>
40     <bean id = "itemPermissions" class="org.openecomp.sdcrests.itempermissions.rest.services.ItemPermissionsImpl"/>
41     <bean id = "notifications" class="org.openecomp.sdcrests.notifications.rest.services.impl.NotificationsImpl"/>
42     <bean id = "togglz" class="org.openecomp.sdcrests.togglz.rest.services.TogglzFeaturesImpl"/>
43     <bean id = "items" class="org.openecomp.sdcrests.item.rest.services.ItemsImpl"/>
44
45     <!-- RESTful Services -->
46     <jaxrs:server id="restContainer" address="/">
47
48         <jaxrs:serviceBeans>
49             <ref bean="versions"/>
50             <ref bean="conflicts"/>
51             <ref bean="vendorLicenseModels"/>
52             <ref bean="licenseAgreements"/>
53             <ref bean="featureGroups"/>
54             <ref bean="entitlementPools"/>
55             <ref bean="entitlementPoolLimits"/>
56             <ref bean="licenseKeyGroups"/>
57             <ref bean="licenseKeyGroupLimits"/>
58             <ref bean="vendorSoftwareProducts"/>
59             <ref bean="networks"/>
60             <ref bean="components"/>
61             <ref bean="nics"/>
62             <ref bean="computes"/>
63             <ref bean="processes"/>
64             <ref bean="componentProcesses"/>
65             <ref bean="validation"/>
66             <ref bean="actions"/>
67             <ref bean="applicationConfiguration"/>
68             <ref bean="componentMonitoringUploads"/>
69             <ref bean="deploymentFlavors"/>
70                 <ref bean="images"/>
71             <ref bean="orchestrationTemplateCandidate"/>
72             <ref bean="componentDependencies"/>
73             <ref bean="healthCheck"/>
74             <ref bean="itemPermissions"/>
75             <ref bean="notifications"/>
76             <ref bean="togglz"/>
77             <ref bean="items"/>
78         </jaxrs:serviceBeans>
79
80         <jaxrs:providers>
81             <ref bean="jsonProvider"/>
82             <bean class="org.openecomp.sdc.action.errors.ActionExceptionMapper"/>
83             <bean class="org.openecomp.sdcrests.errors.DefaultExceptionMapper"/>
84             <bean class="org.openecomp.sdc.logging.servlet.jaxrs.LoggingRequestFilter">
85                 <property name="requestIdHeaders" value="X-ECOMP-RequestID,X-ONAP-RequestID"/>
86                 <property name="partnerNameHeaders" value="USER_ID"/>
87             </bean>
88             <bean class="org.openecomp.sdc.logging.servlet.jaxrs.LoggingResponseFilter"/>
89         </jaxrs:providers>
90
91         <jaxrs:outInterceptors>
92             <ref bean="outEmptyResponseInterceptor"/>
93         </jaxrs:outInterceptors>
94     </jaxrs:server>
95
96 </beans>