use of org.javasimon.spring.MonitoringInterceptor in project springside4 by springside.
the class JavaSimonConfig method monitoringAdvisor.
// 定义AOP, 对标注了@Monitored的方法进行监控
@Bean(name = "monitoringAdvisor")
public DefaultPointcutAdvisor monitoringAdvisor() {
DefaultPointcutAdvisor monitoringAdvisor = new DefaultPointcutAdvisor();
monitoringAdvisor.setAdvice(new MonitoringInterceptor());
monitoringAdvisor.setPointcut(new MonitoredMeasuringPointcut());
return monitoringAdvisor;
}
Aggregations