90 lines
4.5 KiB
XML
90 lines
4.5 KiB
XML
<?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:p="http://www.springframework.org/schema/p"
|
|
xmlns:tx="http://www.springframework.org/schema/tx"
|
|
xmlns:context="http://www.springframework.org/schema/context"
|
|
xmlns:util="http://www.springframework.org/schema/util"
|
|
xmlns:jaxrs="http://cxf.apache.org/jaxrs"
|
|
xmlns:cxf="http://cxf.apache.org/core"
|
|
xsi:schemaLocation="
|
|
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
|
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-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
|
|
http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd
|
|
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd">
|
|
|
|
<!--
|
|
For enabling annotation-based configuration (in particular,
|
|
required for "@Autowired")
|
|
-->
|
|
<context:annotation-config />
|
|
|
|
<bean id="aspect" class="org.libreplan.web.common.concurrentdetection.ConcurrentModificationHandling">
|
|
</bean>
|
|
|
|
<bean class="org.libreplan.web.common.entrypoints.RedirectorSynthetiser"></bean>
|
|
|
|
<bean id="ordersMultipleFiltersFinder" class="org.libreplan.web.common.components.finders.OrdersMultipleFiltersFinder" scope="singleton" />
|
|
|
|
<bean id="taskGroupsMultipleFiltersFinder" class="org.libreplan.web.common.components.finders.TaskGroupsMultipleFiltersFinder" scope="singleton" />
|
|
|
|
<bean id="orderElementsMultipleFiltersFinder" class="org.libreplan.web.common.components.finders.OrderElementsMultipleFiltersFinder" scope="singleton"/>
|
|
|
|
<bean id="taskElementsMultipleFiltersFinder" class="org.libreplan.web.common.components.finders.TaskElementsMultipleFiltersFinder" scope="singleton" />
|
|
|
|
<bean id="resourcesMultipleFiltersFinder" class="org.libreplan.web.common.components.finders.ResourcesMultipleFiltersFinder" scope="singleton" />
|
|
|
|
<bean id="limitingResourceAllocationMultipleFiltersFinder" class="org.libreplan.web.common.components.finders.LimitingResourceAllocationMultipleFiltersFinder" scope="singleton"/>
|
|
|
|
<bean id="nonLimitingResourceAllocationMultipleFiltersFinder" class="org.libreplan.web.common.components.finders.NonLimitingResourceAllocationMultipleFiltersFinder" scope="singleton" />
|
|
|
|
<bean id="resourceMultipleFiltersFinderByResourceAndCriterion" class="org.libreplan.web.common.components.finders.ResourceMultipleFiltersFinderByResourceAndCriterion" scope="singleton"/>
|
|
|
|
<bean id="criterionMultipleFiltersFinder" class="org.libreplan.web.common.components.finders.CriterionMultipleFiltersFinder" scope="singleton"/>
|
|
|
|
<bean id="scenarioManager"
|
|
class="org.libreplan.web.scenarios.CurrentUserScenarioAwareManager"
|
|
scope="singleton"/>
|
|
|
|
<context:component-scan base-package="org.libreplan"/>
|
|
|
|
<!-- CXF -->
|
|
<import resource="classpath:META-INF/cxf/cxf.xml" />
|
|
<import resource="classpath:META-INF/cxf/cxf-extension-jaxrs-binding.xml" />
|
|
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
|
|
|
|
<jaxrs:server id="rest" address="/">
|
|
<jaxrs:serviceBeans>
|
|
<ref bean="criterionServiceREST"/>
|
|
<ref bean="orderElementServiceREST"/>
|
|
<ref bean="resourceServiceREST"/>
|
|
<ref bean="subcontractServiceREST"/>
|
|
<ref bean="reportAdvancesServiceREST"/>
|
|
<ref bean="resourceHoursServiceREST"/>
|
|
<ref bean="workReportServiceREST"/>
|
|
<ref bean="labelServiceREST"/>
|
|
<ref bean="costCategoryServiceREST"/>
|
|
<ref bean="typeOfWorkHoursServiceREST"/>
|
|
<ref bean="calendarExceptionTypeServiceREST"/>
|
|
<ref bean="calendarServiceREST"/>
|
|
<ref bean="materialServiceREST"/>
|
|
<ref bean="unitTypeServiceREST"/>
|
|
<ref bean="expenseSheetServiceREST"/>
|
|
</jaxrs:serviceBeans>
|
|
<jaxrs:providers>
|
|
<ref bean="runtimeExceptionMapper" />
|
|
<ref bean="instanceNotFoundExceptionMapper" />
|
|
<ref bean="incompatibleTypeExceptionMapper" />
|
|
</jaxrs:providers>
|
|
<!-- FIXME: in root pom.xml, enable CXF logging on development and
|
|
disable it in production.
|
|
<jaxrs:features>
|
|
<cxf:logging/>
|
|
</jaxrs:features>
|
|
-->
|
|
</jaxrs:server>
|
|
|
|
</beans>
|