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">
11 <import resource="classpath:META-INF/cxf/cxf.xml"/>
12 <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
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"/>
19 <!-- Needed for JSR-303 validations. May be removed when moving to JAX-RS 2.0 -->
20 <bean class="org.springframework.validation.beanvalidation.MethodValidationPostProcessor"/>
22 <bean id="jacksonObjectMapper" class="org.codehaus.jackson.map.ObjectMapper">
23 <property name="serializationInclusion" value="NON_NULL"/>
26 <bean id="jsonProvider" class="org.codehaus.jackson.jaxrs.JacksonJsonProvider">
27 <property name="mapper" ref="jacksonObjectMapper"/>
30 <bean id="outEmptyResponseInterceptor" class="org.openecomp.server.interceptors.EmptyOutputOutInterceptor"/>
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"/>
39 <bean id = "debugAspect" class="org.openecomp.sdc.logging.aspects.DebugAspect"/>
43 <aop:pointcut id="loggingDebugPointcut" expression="execution(* org.openecomp.sdc.*.*.*(..))"/>
46 <aop:aspect id="logDebugAspect" ref="debugAspect">
47 <aop:before pointcut-ref="loggingDebugPointcut" method="debugEnterMethod"/>
48 <aop:after-returning pointcut-ref="loggingDebugPointcut" method="debugExitMethod"/>
55 <!-- RESTful Services -->
56 <jaxrs:server id="restContainer" address="/">
59 <ref bean="vendorLicenseModels"/>
60 <ref bean="licenseAgreements"/>
61 <ref bean="featureGroups"/>
62 <ref bean="entitlementPools"/>
63 <ref bean="licenseKeyGroups"/>
64 <ref bean="vendorSoftwareProducts"/>
65 <ref bean="networks"/>
66 <ref bean="components"/>
68 <ref bean="processes"/>
69 <ref bean="componentProcesses"/>
70 <ref bean="validation"/>
72 <ref bean="applicationConfiguration"/>
73 <ref bean="componentUploads"/>
74 <ref bean="orchestrationTemplateCandidate"/>
75 <ref bean="componentDependencyModel"/>
76 <ref bean="activityLog"/>
80 <ref bean="jsonProvider"/>
81 <bean class="org.openecomp.sdc.action.errors.ActionExceptionMapper"/>
82 <bean class="org.openecomp.sdcrests.errors.DefaultExceptionMapper"/>
85 <jaxrs:outInterceptors>
86 <ref bean="outEmptyResponseInterceptor"/>
87 </jaxrs:outInterceptors>