Reconhecendo códigos do Spring

0 respostas
Woyzeck

Galera, poderiam me esclarecer ou descrever do que se tratam os beans abaixo?

Estou aprendendo a integrar Spring e JSF, botando o Spring para resolver as dependências.

Porém, fico meio confuso com alguns beans do spring. abaixo:

<bean id="transactionManager" 
	class="org.springframework.orm.hibernate3.HibernateTransactionManager" 
	autowire="byName"/>
<bean id="transactionInterceptor" 
	class="org.springframework.transaction.interceptor.TransactionInterceptor" 
	>
	<property name="transactionAttributes">
		<props>
			<prop key="save*">PROPAGATION_REQUIRED</prop>
			<prop key="delete*">PROPAGATION_REQUIRED</prop>
			<prop key="*"> 
				PROPAGATION_REQUIRED,ISOLATION_DEFAULT,readOnly</prop>
		</props>
	</property>
	<property name="transactionManager" ref="transactionManager"/>
</bean>
<bean id="autoProxyCreator" 
	class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator" 
	>
	<property name="proxyTargetClass">
		<value>true</value>
	</property>
	<property name="interceptorNames">
		<list>
			<value>transactionInterceptor</value>
		</list>
	</property>
	<property name="beanNames">
		<list>
			<value>*Service</value>
		</list>
	</property>
</bean>
<!-- End transaction -->
Criado 22 de novembro de 2007
Respostas 0
Participantes 1