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

ru.taskurotta.recipes.wait.RuntimeBeans.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: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.xsd">

    <context:annotation-config/>

    <bean id="runtimeProvider" class="ru.taskurotta.RuntimeProviderManager" factory-method="getRuntimeProvider"/>

    <bean id="arbiter" class="ru.taskurotta.recipes.wait.WaitArbiter">
        <constructor-arg name="tags">
            <list>
                <value>start</value>
                <value>generate,generate,generate</value>
                <value>waitFor</value>
            </list>
        </constructor-arg>
    </bean>

    <bean class="ru.taskurotta.test.flow.FlowArbiterFactory">
        <property name="instance" ref="arbiter" />
    </bean>

    <bean id="worker" class="ru.taskurotta.recipes.wait.worker.WaitWorkerImpl">
        <property name="arbiter" ref="arbiter"/>
    </bean>

    <bean id="waitDecider" class="ru.taskurotta.recipes.wait.decider.WaitDeciderImpl">
        <property name="async">
            <bean class="ru.taskurotta.ProxyFactory" factory-method="getAsynchronousClient">
                <constructor-arg value="ru.taskurotta.recipes.wait.decider.WaitDeciderImpl"/>
            </bean>
        </property>
        <property name="worker">
            <bean class="ru.taskurotta.ProxyFactory" factory-method="getWorkerClient">
                <constructor-arg value="ru.taskurotta.recipes.wait.worker.WaitWorkerClient"/>
            </bean>
        </property>
        <property name="arbiter" ref="arbiter"/>
    </bean>

</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy