<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
           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-3.0.xsd">
    <bean id="loginService" class="demo.login.impl.LoginServiceImpl">
        <property name="loginProvider" ref="hardcodedLoginProvider"/>
        <property name="caseRules" ref="standardCaseRules"/>
        <property name="failureRules" ref="threeOutFailureRules"/>
    </bean>
    <bean id="hardcodedLoginProvider" class="demo.login.impl.HardcodedLoginProvider"/>
    <bean id="standardCaseRules" class="demo.login.impl.StandardCaseRules"/>
    <bean id="threeOutFailureRules" class="demo.login.impl.MaxOutFailureRules">
        <constructor-arg value="3"/>
    </bean>
</beans>
