Questions tagged [pointcuts]

37 questions
0
votes
1 answer

AspectJ: matching GenericServlet.init() call of an annotated subclass instance

I'm deriving from GenericServlet and annotate that derived class with @Tx. I want to use the GenericServlet.init() method call during servlet startup to trigger some initialization outside the servlet via aop. The first two lines don't match at all,…
user1050755
  • 11,218
  • 4
  • 45
  • 56
0
votes
2 answers

AspectJ parameterized types not support for target pointcuts

I would like to create a class that pointcuts to methods within the list interface. This seems to work until I add the target(list) to my advice. I would like to view the elements of a list before and after adding to (for example) see what has…
dinamix
  • 651
  • 8
  • 22
0
votes
1 answer

AspectJ Pointcut call on JAX-RS annotated Interface method

I'm trying to intercept a method of an interface annoted with a JAX-RS @POST. My Pointcut works for all non-interface methods and if the @POST-Annotation is directly at the called method. The interface method to intercept: @POST Response…
Nils
  • 765
  • 2
  • 10
  • 28
0
votes
1 answer

Most used pointcuts

Regarding AspectJ and AOP in general: What are the most used pointcut primitives? Are there any statistics on this? I think it could be execution and call, is that right? Thanks.
Thorben
  • 953
  • 13
  • 28
0
votes
1 answer

Different resolution scope for Named and Anonymous pointcut annotations?

I am using AspectJ annotations and for some reason it seems that the resolution scope of pointcuts differs for a named pointcut versus an anonymous pointcut. For example in the code below an identical pointcut is resolved if anonymous but not when…
ccol002
  • 25
  • 6
0
votes
3 answers

Why do I get errors when I try to create Beans using Pointcuts and Wildcard Expressions?

When I practice Spring Tutorial 28 - Pointcuts and Wildcard Expressions, I encounter the following problem : Exception in thread"main"org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'triangle' defined in class…
0
votes
1 answer

Spring AOP Pointcut for a template class not working

I have the following class as my point cut public class GenricExceptionMapper implements ExceptionMapper { Logger logger = Logger.getLogger(GenricExceptionMapper.class); public Response toResponse(Exception exception) { …
CodePredator
  • 415
  • 2
  • 6
  • 14
1 2
3