org.codehaus.enunciate.modules.spring_app.applicationContext.xml.fmt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of enunciate-spring-app Show documentation
Show all versions of enunciate-spring-app Show documentation
The Enunciate Spring App module builds and assembles the spring app in the form of a war.
[#ftl] [@file name="applicationContext.xml"] <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> <context:annotation-config/> [#if securityEnabled] <import resource="security-context.xml"/> [/#if] [#if springImports?exists] [#list springImports as springImport] <import resource="${springImport}"/> [/#list] [/#if] [#if handlerInterceptors?exists] <!-- global handler mapping interceptors --> <!-- specifically named 'interceptors' so they can be autowired by name to basic spring handler mappings --> <util:list id="interceptors"> [#list handlerInterceptors as interceptor] [#if interceptor.interceptorClass?exists] <bean class="${interceptor.interceptorClass}"/> [#else] <ref bean="${interceptor.beanName}"/> [/#if] [/#list] </util:list> [/#if] <bean name="service-bean-interceptors" class="java.util.ArrayList"> <qualifier value="enunciate-service-bean-interceptors"/> <constructor-arg> <list> [#if globalServiceInterceptors?exists] [#list globalServiceInterceptors as interceptor] [#if interceptor.interceptorClass?exists] <bean class="${interceptor.interceptorClass}"/> [#else] <ref bean="${interceptor.beanName}"/> [/#if] [/#list] [/#if] [#if securityEnabled] <ref bean="enunciate-security-interceptor"/> [/#if] </list> </constructor-arg> </bean> [@forEachServiceEndpoint] <bean name="${endpointBeanId(endpoint)}" class="org.codehaus.enunciate.modules.spring_app.ServiceEndpointFactoryBean"> [#if endpoint.endpointQualifiers?exists] [#list endpoint.endpointQualifiers as qualifier] <qualifier value="${qualifier}"/> [/#list] [/#if] <constructor-arg value="${endpoint.serviceEndpointInterface.qualifiedName}"/> <property name="defaultImplementationBeanName" value="${endpoint.serviceEndpointInterface.simpleName}EndpointBean"/> [#if endpoint.serviceEndpointDefaultImplementation?exists] <property name="defaultImplementationClass" value="${endpoint.serviceEndpointDefaultImplementation.qualifiedName}"/> [/#if] <property name="interceptors" ref="service-bean-interceptors"/> </bean> [/@forEachServiceEndpoint] </beans> [/@file]
© 2015 - 2025 Weber Informatics LLC | Privacy Policy