126f7814d72b1d1e66e2217b4a554161d19176fc
[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="uploadValidationManager" class="org.openecomp.sdc.validation.impl.UploadValidationManagerImpl"/>
34     <bean id="actionManager" class="org.openecomp.sdc.action.impl.ActionManagerImpl"/>
35     <bean id="applicationConfigManager" class="org.openecomp.sdc.applicationconfig.impl.ApplicationConfigManagerImpl"/>
36
37     <!-- aspect beans -->
38     <bean id = "debugAspect" class="org.openecomp.sdc.logging.aspects.DebugAspect"/>
39     <bean id = "healthCheck" class="org.openecomp.sdcrests.health.rest.services.HealthCheckImpl"/>
40     <!--aop:config>
41         < aspect pointcuts>
42         <aop:pointcut id="loggingDebugPointcut" expression="execution(* org.openecomp.sdc.*.*.*(..))"/>
43
44         <advices>
45         <aop:aspect id="logDebugAspect" ref="debugAspect">
46             <aop:before pointcut-ref="loggingDebugPointcut" method="debugEnterMethod"/>
47             <aop:after-returning pointcut-ref="loggingDebugPointcut" method="debugExitMethod"/>
48         </aop:aspect>
49     </aop:config-->
50
51
52
53
54     <!-- RESTful Services -->
55     <jaxrs:server id="restContainer" address="/">
56
57         <jaxrs:serviceBeans>
58             <ref bean="vendorLicenseModels"/>
59             <ref bean="licenseAgreements"/>
60             <ref bean="featureGroups"/>
61             <ref bean="entitlementPools"/>
62             <ref bean="entitlementPoolLimits"/>
63             <ref bean="licenseKeyGroups"/>
64             <ref bean="licenseKeyGroupLimits"/>
65             <ref bean="vendorSoftwareProducts"/>
66             <ref bean="networks"/>
67             <ref bean="components"/>
68             <ref bean="nics"/>
69             <ref bean="computes"/>
70             <ref bean="processes"/>
71             <ref bean="componentProcesses"/>
72             <ref bean="validation"/>
73             <ref bean="actions"/>
74             <ref bean="applicationConfiguration"/>
75             <ref bean="componentMonitoringUploads"/>
76             <ref bean="deploymentFlavors"/>
77                 <ref bean="images"/>
78             <ref bean="orchestrationTemplateCandidate"/>
79             <ref bean="componentDependencyModel"/>
80             <ref bean="activityLog"/>
81             <ref bean="healthCheck"/>
82         </jaxrs:serviceBeans>
83
84         <jaxrs:providers>
85             <ref bean="jsonProvider"/>
86             <bean class="org.openecomp.sdc.action.errors.ActionExceptionMapper"/>
87             <bean class="org.openecomp.sdcrests.errors.DefaultExceptionMapper"/>
88         </jaxrs:providers>
89
90         <jaxrs:outInterceptors>
91             <ref bean="outEmptyResponseInterceptor"/>
92         </jaxrs:outInterceptors>
93     </jaxrs:server>
94
95 </beans>