<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
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.1.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd"
>
<bean id="myBean" class="com.godoro.enterprise.spring.bean.definition.MyBean">
<property name="myLong" value="100"/>
<property name="myString" value="Godoro"/>
<property name="myDouble" value="2.5"/>
</bean>
<context:component-scan base-package="com.godoro.enterprise.spring.alternate" />
<context:component-scan base-package="com.godoro.enterprise.spring.bean" />
<context:component-scan base-package="com.godoro.enterprise.spring.contract" />
<context:component-scan base-package="com.godoro.enterprise.spring.injection" />
<context:component-scan base-package="com.godoro.enterprise.spring.jpa" />
<!--
<bean id="companyCaterer"
class="com.godoro.enterprise.spring.alternate.implementation1.CheapCaterer"/>
-->
<bean id="companyCaterer"
class="com.godoro.enterprise.spring.alternate.implementation2.ExpensiveCaterer"/>
<bean id="productDao" class="com.godoro.enterprise.spring.jpa.dao.JpaProductDao">
<property name="entityManagerFactory" ref="entityManagerFactory"/>
</bean>
<bean id="entityManagerFactory"
class="org.springframework.orm.jpa.LocalEntityManagerFactoryBean">
<property name="persistenceUnitName" value="EnterpriseSpringFrameworkPU" />
</bean>
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
<property name="entityManagerFactory" ref="entityManagerFactory"/>
</bean>
<tx:annotation-driven />
</beans>
Dosyayı İndir