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

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

问题描述

是否可以使用LTW指定aop.xml文件的名称?或定义其他名称和位置? 我有几个使用的软件模块,并且全部使用具有不同设置的META-INF/aop.xml. 我将这些模块包含在Web应用程序中,然后全部取决于如何部署/解压缩(使用哪个aop.xml文件). 因此,经过长时间的搜索,我发现并没有使用所有依赖于aop.xml的LTW编织位置校正...

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...

如何执行此操作? 埃德

How to do this? Ed

推荐答案

使用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天全站免登陆