aop.xml 名称和位置? [英] aop.xml name and location?

查看:21
本文介绍了aop.xml 名称和位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法用LTW指定aop.xml文件的名字?或定义另一个名称和位置?我有几个我使用的软件模块,它们都使用具有不同设置的 META-INF/aop.xml.我将这些模块包含在一个 web 应用程序中,然后它完全取决于它的部署/解包方式,使用哪个 aop.xml 文件..所以经过长时间的搜索,我发现并不是所有的 LTW 编织都使用了 aop.xml 的地方更正......

Is there a way to specify the name of the aop.xml file with LTW? or define another name and location? I have several software modules that I use and that all use META-INF/aop.xml with different settings. I include these modules in a web application and then it all dependens how it's deployed/unpacked, which aop.xml file is used .. So I discovered after long time of searching that not all LTW weaving toke place correcting as it depends with aop.xml was used ...

基本上我需要使用两个 aop.xml 文件,有点合并 aop.xml 文件的两个内容...

Basically I need to use both aop.xml files, kinda of merging both contents of the aop.xml files...

如何做到这一点?埃德

推荐答案

使用 AspectJ 时,您可以使用系统属性 org.aspectj.weaver.loadtime.configuration 指向另一个配置文件.例如:

When using AspectJ you can use the system property org.aspectj.weaver.loadtime.configuration to point to another config file. For example:

-D org.aspectj.weaver.loadtime.configuration=META-INF/myaop.xml

这篇关于aop.xml 名称和位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆