All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.bull.javamelody.monitoring-spring.xml Maven / Gradle / Ivy

There is a newer version: 2.3.0
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:tx="http://www.springframework.org/schema/tx"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
       http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd">

	<bean id="monitoringAdvisor" class="net.bull.javamelody.MonitoringSpringAdvisor">
		<property name="pointcut">
			<bean class="net.bull.javamelody.MonitoredWithAnnotationPointcut"/>
		</property>
	</bean>
	<!-- to monitor methods annotated by @Async or @Scheduled,
	add net/bull/javamelody/monitoring-spring-scheduled.xml in Spring's context,
	but https://jira.spring.io/browse/SPR-15562 may change that
	<bean id="monitoringAsyncAndScheduledAdvisor" class="net.bull.javamelody.MonitoringSpringAdvisor">
		<property name="pointcut">
			<bean class="net.bull.javamelody.MonitoredSpringAsyncAndScheduledPointcut"/>
		</property>
	</bean>
	-->
	<bean id="monitoringControllerAndServiceAdvisor" class="net.bull.javamelody.MonitoringSpringAdvisor">
		<property name="pointcut">
			<bean class="net.bull.javamelody.MonitoredSpringControllerAndServicePointcut"/>
		</property>
	</bean>

	<bean class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator"/>

	<bean id="springDataSourceBeanPostProcessor" class="net.bull.javamelody.SpringDataSourceBeanPostProcessor">
		<!--
		<property name="excludedDatasources">
			<set>
				<value>excludedDataSourceName</value>
			</set>
		</property>
		-->
 	</bean>

	<!--
 	<bean id="wrappedDataSource" class="net.bull.javamelody.SpringDataSourceFactoryBean">
		<property name="targetName" value="targetDataSource" />
	</bean>
	-->

	<bean id="springRestTemplateBeanPostProcessor" class="net.bull.javamelody.SpringRestTemplateBeanPostProcessor" />

	<bean id="javamelodySpringContext" class="net.bull.javamelody.SpringContext" />
</beans>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy