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">
12 <import resource="classpath:META-INF/cxf/cxf.xml"/>
13 <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
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"/>
20 <!-- Needed for JSR-303 validations. May be removed when moving to JAX-RS 2.0 -->
21 <bean class="org.springframework.validation.beanvalidation.MethodValidationPostProcessor"/>
23 <bean id="jacksonObjectMapper" class="org.codehaus.jackson.map.ObjectMapper">
24 <property name="serializationInclusion" value="NON_NULL"/>
27 <bean id="jsonProvider" class="org.codehaus.jackson.jaxrs.JacksonJsonProvider">
28 <property name="mapper" ref="jacksonObjectMapper"/>
31 <bean id="outEmptyResponseInterceptor" class="org.openecomp.server.interceptors.EmptyOutputOutInterceptor"/>
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 = "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"/>
44 <!-- RESTful Services -->
45 <jaxrs:server id="restContainer" address="/">
48 <ref bean="versions"/>
49 <ref bean="conflicts"/>
50 <ref bean="vendorLicenseModels"/>
51 <ref bean="licenseAgreements"/>
52 <ref bean="featureGroups"/>
53 <ref bean="entitlementPools"/>
54 <ref bean="entitlementPoolLimits"/>
55 <ref bean="licenseKeyGroups"/>
56 <ref bean="licenseKeyGroupLimits"/>
57 <ref bean="vendorSoftwareProducts"/>
58 <ref bean="networks"/>
59 <ref bean="components"/>
61 <ref bean="computes"/>
62 <ref bean="processes"/>
63 <ref bean="componentProcesses"/>
64 <ref bean="validation"/>
66 <ref bean="applicationConfiguration"/>
67 <ref bean="componentMonitoringUploads"/>
68 <ref bean="deploymentFlavors"/>
70 <ref bean="orchestrationTemplateCandidate"/>
71 <ref bean="componentDependencies"/>
72 <ref bean="healthCheck"/>
73 <ref bean="itemPermissions"/>
74 <ref bean="notifications"/>
79 <ref bean="jsonProvider"/>
80 <bean class="org.openecomp.sdc.action.errors.ActionExceptionMapper"/>
81 <bean class="org.openecomp.sdcrests.errors.DefaultExceptionMapper"/>
84 <jaxrs:outInterceptors>
85 <ref bean="outEmptyResponseInterceptor"/>
86 </jaxrs:outInterceptors>