<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:security="http://www.springframework.org/schema/security"
    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-2.0.xsd
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.xsd">

	<bean id="bankDao" class="bigbank.BankDaoStub"/>

	<bean id="seedData" class="bigbank.SeedData">
		<property name="bankDao" ref="bankDao"/>
	</bean>

	<bean id="bankService" class="bigbank.BankServiceImpl">
		<constructor-arg ref="bankDao"/>
	</bean>

</beans>
<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:security="http://www.springframework.org/schema/security"
    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-2.0.xsd
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.xsd">

	<bean id="bankDao" class="bigbank.BankDaoStub"/>

	<bean id="seedData" class="bigbank.SeedData">
		<property name="bankDao" ref="bankDao"/>
	</bean>

	<bean id="bankService" class="bigbank.BankServiceImpl">
		<constructor-arg ref="bankDao"/>
        <!-- This will add a security interceptor to the bean
        <security:intercept-methods>
            <security:protect method="bigbank.BankService.*" access="IS_AUTHENTICATED_REMEMBERED" />
            <security:protect method="bigbank.BankService.post" access="ROLE_TELLER" />
        </security:intercept-methods>  -->
	</bean>

</beans>
Add <intercept-methods> to example, but it is disabled in favour of @Secured annotation. Still, we include it so people can have a play around and switch between the two syntaxes easily in demos etc.
Add <intercept-methods> to example, but it is disabled in favour of @Secured annotation. Still, we include it so people can have a play around and switch between the two syntaxes easily in demos etc.
