I'm trying to exclude several methods from log files using aspectj (Im usong spring and Load-time weaving). Is there a way to list the excluded methods in the aop.xml? I know i can do this for full classes but I'm looking for specific methods. or can i make a list in the aspect class? Thanks
相关问题
- Android Annotations and MonkeyTalk?
- When I apply AspectJ to Android project with Andro
- How to set Spring weaver options in Java config cl
- AspectJ: @AfterReturning
- Specifying the order of proxy creation in Spring
相关文章
- Call/Return feature of classic C++(C with Classes)
- Spring self injection for transactions
- Disabling certain aspects during unit test runs
- AspectJ not capture calls from jar file
- How to find controller name in @controllerAdvice o
- Dynamic values are not supported as attributes in
- How can I log private methods via Spring AOP?
- How can I log private methods via Spring AOP?
Here is way for exclusion of method based on aop.xml or aop-ajc.xml in aspectj
Create below abstract aspect
I don't know how to do it in an XML, but it's easy enough to do it in the aspects themselves, as pointcuts can be combined using boolean operators.
Traditional aspectj syntax:
@AspectJ syntax:
These are of course just samples.
whatIDontWantToMatch()
could also be composed of several pointcuts etc.