<?xml version="1.0"?>

<beans
	default-destroy-method="destroy"
	default-init-method="afterPropertiesSet"
	xmlns="http://www.springframework.org/schema/beans"
	xmlns:aop="http://www.springframework.org/schema/aop"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"
>
	<bean class="com.liferay.portal.spring.aop.ServiceBeanAutoProxyCreator">
		<property name="methodInterceptor" ref="serviceAdvice" />
	</bean>
	<bean class="com.liferay.portal.spring.bean.BeanReferenceAnnotationBeanPostProcessor" />
	<bean id="basePersistence" abstract="true">
		<property name="dataSource" ref="liferayDataSource" />
		<property name="sessionFactory" ref="liferaySessionFactory" />
	</bean>
	<bean id="serviceAdvice" class="com.liferay.portal.security.pacl.PACLAdvice">
		<property name="nextMethodInterceptor" ref="asyncAdvice" />
	</bean>
	<bean id="asyncAdvice" class="com.liferay.portal.messaging.async.AsyncAdvice">
		<property name="defaultDestinationName" value="liferay/async_service" />
		<property name="nextMethodInterceptor" ref="threadLocalCacheAdvice" />
	</bean>
	<bean id="threadLocalCacheAdvice" class="com.liferay.portal.cache.ThreadLocalCacheAdvice">
		<property name="nextMethodInterceptor" ref="bufferedIncrementAdvice" />
	</bean>
	<bean id="bufferedIncrementAdvice" class="com.liferay.portal.increment.BufferedIncrementAdvice">
		<property name="nextMethodInterceptor" ref="indexableAdvice" />
	</bean>
	<bean id="indexableAdvice" class="com.liferay.portal.search.IndexableAdvice">
		<property name="nextMethodInterceptor" ref="transactionAdvice" />
	</bean>
	<bean id="transactionAdvice" class="com.liferay.portal.spring.transaction.TransactionInterceptor">
		<property name="platformTransactionManager" ref="liferayTransactionManager" />
		<property name="transactionAttributeSource" ref="transactionAttributeSource" />
	</bean>
	<bean id="transactionAttributeSource" class="com.liferay.portal.spring.transaction.AnnotationTransactionAttributeSource" />
</beans>