Advertisement
fedorm

Untitled

Nov 14th, 2017
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.67 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"
  3. xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  4. <!-- Расширенный (EXTended) список поставщиков "услуг лояльности". Или внешние (EXTernal) поставщики лояльности -->
  5.  
  6. <!-- Средство для получения списка РА, что могут действовать на чек прямо сейчас -->
  7. <bean id="loy-actions-provider" class="ru.crystals.loyal.actions.provider.InMemoryLoyActionsProvider">
  8. <property name="cache" ref="actions-cache"/>
  9. </bean>
  10.  
  11. <bean id="loy-providers-registry" class="ru.crystals.loyal.providers.LoyProvidersRegistryImpl" init-method="init">
  12. <property name="providers">
  13. <list>
  14. <bean class="ru.crystals.loyal.providers.CustomSetLoyProvider">
  15. <property name="actionsProvider" ref="loy-actions-provider"/>
  16. <property name="filter">
  17. <bean class="ru.crystals.loyal.providers.set.filters.SetActionsAndFilter">
  18. <property name="filters">
  19. <list>
  20. <bean class="ru.crystals.loyal.providers.set.filters.NonWorksAnyTimeSetActionsFilter"/>
  21. <bean class="ru.crystals.loyal.providers.set.filters.NonRoundingSetActionsFilter"/>
  22. </list>
  23. </property>
  24. </bean>
  25. </property>
  26. </bean>
  27.  
  28. <ref bean="set-machine-loy-provider"/>
  29.  
  30. <bean class="ru.crystals.loyal.providers.CustomSetLoyProvider">
  31. <property name="actionsProvider" ref="loy-actions-provider"/>
  32. <property name="filter">
  33. <bean class="ru.crystals.loyal.providers.set.filters.SetActionsAndFilter">
  34. <property name="filters">
  35. <list>
  36. <bean class="ru.crystals.loyal.providers.set.filters.WorksAnyTimeSetActionsFilter"/>
  37. <bean class="ru.crystals.loyal.providers.set.filters.NonRoundingSetActionsFilter"/>
  38. </list>
  39. </property>
  40. </bean>
  41. </property>
  42. </bean>
  43.  
  44. <bean class="ru.crystals.loyal.providers.CustomSetLoyProvider">
  45. <property name="actionsProvider" ref="loy-actions-provider"/>
  46. <property name="filter">
  47. <bean class="ru.crystals.loyal.providers.set.filters.RoundingSetActionsFilter"/>
  48. </property>
  49. </bean>
  50. </list>
  51. </property>
  52.  
  53. <property name="staleFeedbackSendIntervalSeconds" value="120"/>
  54. <property name="maxStaleFeedbackToSend" value="5"/>
  55. </bean>
  56.  
  57.  
  58. <!-- Наш (SET10) классический поставщик услуг лояльности -->
  59. <bean id="classic-set10-loy-provider" class="ru.crystals.loyal.providers.ClassicSetLoyProvider">
  60. <property name="actionsProvider" ref="loy-actions-provider"/>
  61. </bean>
  62.  
  63. <!-- Поставщик лояльности SetMachine -->
  64. <bean id="set-machine-loy-provider" class="ru.crystals.pos.loyal.sm.SetMachineLoyProvider">
  65. <property name="actionsProvider" ref="loy-actions-provider"/>
  66. </bean>
  67.  
  68. </beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement