从 LTW 的属性文件中读取 Aspectj 切入点定义 [英] Read Aspectj Pointcut definition from property file for LTW
本文介绍了从 LTW 的属性文件中读取 Aspectj 切入点定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的 guice 应用程序中使用了 aspectj LTW,我正在尝试为从配置文件控制的方面创建切入点定义.例如:
I using aspectj LTW in my guice application and I m trying to make the pointcut definition for the aspects controlled from a configuration file. for example:
pointcut publicOperation() : execution(*** READ THIS FROM CONFIG/PROPERTY FILE ****);
Object around() : publicOperation() {
.....
}
我有哪些可能的选择?
谢谢
推荐答案
按照 AspectJ 开发环境指南.
Put your pointcut definitions into aop.xml as suggested by the The AspectJ Development Environment Guide.
这篇关于从 LTW 的属性文件中读取 Aspectj 切入点定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文