Created
February 22, 2018 06:45
-
-
Save urstory/a6b08be4aa0360b1f6edbe9dc8d62c06 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:context="http://www.springframework.org/schema/context" | |
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.5.xsd | |
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> | |
<context:annotation-config></context:annotation-config> | |
<!-- | |
Player player = new Player(); | |
player.setDiceService(diceService); | |
--> | |
<bean id="player" | |
class="examples.springexam.Player" | |
init-method="init" | |
destroy-method="destroy"> | |
<property name="diceService" ref="diceService"/> | |
</bean> | |
<bean id="diceService" | |
init-method="init" | |
destroy-method="destroy" | |
class="examples.springexam.DiceServiceImpl"/> | |
<bean class="examples.springexam.ApplicationListenerBean"/> | |
</beans> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment