Read Aspectj Pointcut definition from property fil

2019-07-17 16:00发布

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条回答
再贱就再见
2楼-- · 2019-07-17 16:47

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

查看更多
登录 后发表回答