Questions tagged [pointcut]
221 questions
0
votes
2 answers
How to ensure order advice for two point cuts matching the same join point in Aspectj and AOP
I'm planning on using Spring Security using Spring AOP. It will have it's own point cuts for all public methods on controller classes. The methods will be picked out by class name and public method, perhaps partial argument signatures.
I also want…

Dennis
- 747
- 7
- 15
0
votes
1 answer
Access private fields in aspectj
I am trying to get the name of the private field of an object. When i use the same point-cut for the public fields of my package it works just right. My aspect is set to privileged. I want the fields where the classes' objects are updated.…

Eirini Televantou
- 131
- 2
- 12
0
votes
2 answers
Legacy Spring application - what does the pointcut value mean?
I have "inherited" an old legacy Spring application. Currently it is using Spring 2.5 (just upgraded it once), and am looking to further upgrade it to Spring 3.
I understand most of the application configuration. There is just one part that I am…

arcseldon
- 35,523
- 17
- 121
- 125
0
votes
2 answers
How to intercept proceed() in another AspectJ aspect?
I have a situation as follows: I have a LoggingAspect with several pointcuts matching specific method executions in my main application. The corresponding advice bodies basically all look similar, causing a lot of code duplication:
void around() :…

kriegaex
- 63,017
- 15
- 111
- 202
0
votes
2 answers
Two Pointcuts for two methods with the same name but different arguments
Hei.
I'm writing an @Aspect for the logging of my persistence layer.
First some code which may show the error to an experienced developer ;)
/** Interface of the class to observe. */
public interface PersistenceService {
public Serializable…

C.B.
- 1
- 1
- 3
0
votes
1 answer
is it possible to pointcut on a third party class and how?
I use spring and ibatis in my project, here is my question.
I want to trace all changes like add/update/delete and log them into table T_TRACE_LOG. The table has columns: operation_type, object_type, log_content, log_date.
Here is an example…

justin.xxt
- 11
- 2
0
votes
2 answers
Pointcut confusion with inheritance
I am confused by writing a pointcut that matches all executions of a method. I tried the pointcut that should match all method-executions of class Alpha:
execution(* Alpha.*(..))
with the following class-hierachy
public class Alpha {
public…

thomas
- 5,637
- 2
- 24
- 35
0
votes
1 answer
Pointcut to Spring @RequestMapping
I'm just now trying to enable AOP on my Spring project. I want to execute code (a session cleaning) AFTER the @RequestMapping has completed. Here is my applicationContext.xml (simply load referenced resources

Fzan
- 75
- 11
-1
votes
1 answer
using spring aop pointcut getting error although i had added aspectjrt.jar also
Not able to solve this problem
Error :
java.lang.IllegalStateException:
ContainerBase.addChild: start:
org.apache.catalina.LifecycleException:
javax.xml.parsers.FactoryConfigurationError:
Provider
…

TaherT
- 1,285
- 2
- 22
- 41
-1
votes
1 answer
Spring AOP: is it possible to define pointcuts in imported classes or interfaces, and how?
I'm trying to define a pointcut on all classes, or at least one class in an imported library in Spring. However, when I run the application, I get
[tomcat:launch] SEVERE: Servlet threw load() exception
[tomcat:launch]…

Maxim Mayers
- 185
- 2
- 6
-3
votes
1 answer
aspectj pointcut and advice for single call following construction of an instance
Based on my own experimentation and the documentation here: http://www.eclipse.org/aspectj/doc/released/faq.html#q:initializationjoinpoints
This:
public class Init {
public static void main (String[] args) {
new Test();
}…

DavidA
- 3,984
- 5
- 25
- 38