aspectj
Spring: Check present interceptors
Is there a way to check which interceptors are present for the current method? An example: if I am debugging the following method (any line in the method)[详细]
2023-03-20 09:48 分类:问答iajc and aspectpath
I\'m a bit confused with the aspectpath option of the iajc compiler. My project use AspectJ to weave metric code into an existing swing application.[详细]
2023-03-20 05:04 分类:问答NoSuchMethodError aspectOf() at runtime from building with iajc
We used aspectJ to get some metric on an existing application.When building and weaving with AJDT in eclipse, everything works great.But in the integration env. we use an ant script to build and deplo[详细]
2023-03-19 22:59 分类:问答Get annotated parameters inside a pointcut
I have two annotation @LookAtThisMethod and @LookAtThisParameter, if I have a pointcut around the methods with @LookAtThisMethod how could I extract the parameters of said method which are annotated w[详细]
2023-03-18 22:57 分类:问答AspectJ annotation pointcut not triggered for interface annotations
How would one create a pointcut that matches methods that are annotated with an annotation or whose interface method is annotated with an annotation?[详细]
2023-03-18 20:09 分类:问答AspectJ not weaving on test-compile but weaves on compile. Therefore unit tests throw ClassNotFoundException when running with maven
All my junit tests have been passing in eclipse, but when run from the console they seem to throw ClassNotFoundException for the AJ class RiskLogAspect.aj I can verify that in eclipse this is correctl[详细]
2023-03-18 11:50 分类:问答How should aspect weaving be limited to classes referenced by aop:advisor pointcuts?
I\'m trying to trace execution of an app running on ServiceMix 3.2 which uses spring 2.5 under the hood. I\'m using CGLIB (advising classes, not interfaces) and I would like to direct tracing using po[详细]
2023-03-18 09:13 分类:问答What is the correct syntax to include multiple `context:exclude-filter`s?
What is the correct syntax to inlcude multiple context:exclude-filters? I\'m using this but I don\'t know if it works:[详细]
2023-03-17 22:59 分类:问答Can aspectj add methods to java.lang.String
I\'ve read some articles of aspectj, I know it can enhance classes, which is attractive. I\'ve a very stupid question that I ca开发者_如何学Pythonn\'t find a clear answer:[详细]
2023-03-17 01:57 分类:问答Which are the most suitable languages to apply Aspect's Theme approach?
I am thinking about reading Aspect-Oriented Analysis and Design: The Theme Approach, yet I am hesitant. Is it possible to use what\'s taught in the book with AspectJ (for Java) or Post# in C#? Maybe w[详细]
2023-03-16 22:28 分类:问答