net.bull.javamelody.monitoring-spring.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javamelody-core Show documentation
Show all versions of javamelody-core Show documentation
Monitoring of JavaEE applications
<?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="springMongoDbFactoryBeanPostProcessor" class="net.bull.javamelody.SpringMongoDbFactoryBeanPostProcessor" /> <bean id="springElasticsearchOperationsBeanPostProcessor" class="net.bull.javamelody.SpringElasticsearchOperationsBeanPostProcessor" /> <bean id="javamelodySpringContext" class="net.bull.javamelody.SpringContext" /> </beans>