summaryrefslogtreecommitdiffstats
path: root/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/src/main/webapp/WEB-INF/beans-services.xml
blob: 15251436d620e2a844e4d1f4eb962f1229e7044f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:jaxrs="http://cxf.apache.org/jaxrs"
       xmlns:context="http://www.springframework.org/schema/context"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans.xsd
       http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd
       http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">


    <import resource="classpath:META-INF/cxf/cxf.xml"/>
    <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>

    <!-- CXF -->
    <context:component-scan base-package="org.openecomp.sdcrests"/>
    <context:component-scan base-package="org.openecomp.sdc.vendorsoftwareproduct.dao"/>
    <!-- Needed for JSR-303 validations. May be removed when moving to JAX-RS 2.0 -->
    <bean id="validator" class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean"/>

    <!-- Needed for JSR-303 validations. May be removed when moving to JAX-RS 2.0 -->
    <bean class="org.springframework.validation.beanvalidation.MethodValidationPostProcessor"/>

    <bean id="jacksonObjectMapper" class="com.fasterxml.jackson.databind.ObjectMapper">
        <property name="serializationInclusion" value="NON_NULL"/>
    </bean>

    <bean id="jsonProvider" class="com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider">
        <property name="mapper" ref="jacksonObjectMapper"/>
    </bean>

    <bean id="outEmptyResponseInterceptor" class="org.openecomp.server.interceptors.EmptyOutputOutInterceptor"/>

    <!-- ASDC -->
    <bean id="uploadValidationManager" class="org.openecomp.sdc.validation.impl.UploadValidationManagerImpl"/>
    <bean id="actionManager" class="org.openecomp.sdc.action.impl.ActionManagerImpl"/>
    <bean id="applicationConfigManager" class="org.openecomp.sdc.applicationconfig.impl.ApplicationConfigManagerImpl"/>

    <!-- aspect beans -->
    <bean id = "healthCheck" class="org.openecomp.sdcrests.health.rest.services.HealthCheckImpl"/>
    <bean id = "itemPermissions" class="org.openecomp.sdcrests.itempermissions.rest.services.ItemPermissionsImpl"/>
    <bean id = "notifications" class="org.openecomp.sdcrests.notifications.rest.services.impl.NotificationsImpl"/>
    <bean id = "togglz" class="org.openecomp.sdcrests.togglz.rest.services.TogglzFeaturesImpl"/>
    <bean id = "items" class="org.openecomp.sdcrests.item.rest.services.ItemsImpl"/>
    <bean id = "uniqueTypes" class="org.openecomp.sdcrests.uniquevalue.rest.services.UniqueTypesImpl"/>

    <!-- External Testing Interface Beans -->
    <bean id = "externalTestingManager" class="org.openecomp.core.externaltesting.impl.ExternalTestingManagerImpl"/>

    <!-- RESTful Services -->
    <jaxrs:server id="restContainer" address="/">

        <jaxrs:serviceBeans>
            <ref bean="versions"/>
            <ref bean="conflicts"/>
            <ref bean="vendorLicenseModels"/>
            <ref bean="licenseAgreements"/>
            <ref bean="featureGroups"/>
            <ref bean="entitlementPools"/>
            <ref bean="entitlementPoolLimits"/>
            <ref bean="licenseKeyGroups"/>
            <ref bean="licenseKeyGroupLimits"/>
            <ref bean="vendorSoftwareProducts"/>
            <ref bean="packageUploadManagerController"/>
            <ref bean="networks"/>
            <ref bean="components"/>
            <ref bean="nics"/>
            <ref bean="computes"/>
            <ref bean="processes"/>
            <ref bean="componentProcesses"/>
            <ref bean="validation"/>
            <ref bean="externaltesting"/>
            <ref bean="actions"/>
            <ref bean="applicationConfiguration"/>
            <ref bean="componentMonitoringUploads"/>
            <ref bean="deploymentFlavors"/>
            <ref bean="images"/>
            <ref bean="orchestrationTemplateCandidate"/>
            <ref bean="vnfPackageRepository"/>
            <ref bean="componentDependencies"/>
            <ref bean="healthCheck"/>
            <ref bean="itemPermissions"/>
            <ref bean="notifications"/>
            <ref bean="togglz"/>
            <ref bean="items"/>
            <ref bean="uniqueTypes"/>
            <ref bean="prometheusMetricsController"/>
        </jaxrs:serviceBeans>

        <jaxrs:providers>
            <ref bean="jsonProvider"/>
            <bean class="org.openecomp.sdc.action.errors.ActionExceptionMapper"/>
            <bean class="org.openecomp.sdc.common.errors.DefaultExceptionMapper"/>
            <bean class="org.openecomp.sdcrests.errors.ZusammenExceptionMapper"/>
            <bean class="org.openecomp.sdc.logging.servlet.jaxrs.LoggingRequestFilter">
                <property name="requestIdHeaders" value="X-ONAP-RequestID,X-RequestID,X-TransactionId,X-ECOMP-RequestID"/>
                <property name="partnerNameHeaders" value="USER_ID,X-ONAP-PartnerName,User-Agent"/>
            </bean>
            <bean class="org.openecomp.sdc.logging.servlet.jaxrs.LoggingResponseFilter"/>
        </jaxrs:providers>

        <jaxrs:outInterceptors>
            <ref bean="outEmptyResponseInterceptor"/>
        </jaxrs:outInterceptors>
    </jaxrs:server>

</beans>