Read Aspectj Pointcut definition from property file for LTW

淺唱寂寞╮ 提交于 2019-12-11 02:09:50

问题


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() {
        .....
    }

what all possible options that I have ?

Thanks


回答1:


Put your pointcut definitions into aop.xml as suggested by the The AspectJ Development Environment Guide.



来源:https://stackoverflow.com/questions/18130336/read-aspectj-pointcut-definition-from-property-file-for-ltw

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!