All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mfeed-client-spring.1.10.1.source-code.atomFeedClientContext.xml Maven / Gradle / Ivy

<?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:aop="http://www.springframework.org/schema/aop"
       xmlns:tx="http://www.springframework.org/schema/tx"
       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://www.springframework.org/schema/context
                           http://www.springframework.org/schema/context/spring-context-3.0.xsd
                           http://www.springframework.org/schema/tx
                           http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
                           http://www.springframework.org/schema/aop
                           http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">

    <!--
      This context file can't be used to create AtomFeedClient instance, as the constructor arguments don't match.
      Use AtomFeedClientBuilder instead.
    -->
    <context:property-placeholder location="classpath*:*.properties"/>

    <import resource="classpath:atomFeedClientJdbcContext.xml"/>

    <tx:advice id="defaultTxAdvice" transaction-manager="transactionManager">
        <tx:attributes>
            <tx:method name="processEvents"/>
            <tx:method name="processFailedEvents"/>
        </tx:attributes>
    </tx:advice>

    <aop:config>
        <aop:pointcut id="feedProcessing" expression="execution(* org.ict4h.atomfeed.client.service.FeedClient.*(..))"/>
        <aop:advisor advice-ref="defaultTxAdvice" pointcut-ref="feedProcessing"/>
    </aop:config>

    <bean id="feedClient" class="org.ict4h.atomfeed.client.service.AtomFeedClient" >
        <constructor-arg ref="allFeeds"/>
        <constructor-arg ref="allMarkers"/>
        <constructor-arg ref="allFailedEvents"/>

    </bean>

</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy