Top "Aspectj" questions

AspectJ is an aspect-oriented extension to the Java programming language that enables clean modularization of crosscutting concerns such as logging, error handling, standards enforcement and feature variations.

@AspectJ pointcut for all methods of a class with specific annotation

I want to monitor all public methods of all Classes with specified annotation (say @Monitor) (note: Annotation is at class …

java aop aspectj spring-aop
Spring AOP: What's the difference between JoinPoint and PointCut?

I'm learning Aspect Oriented Programming concepts and Spring AOP. I'm failing to understand the difference between a Pointcut and a …

spring aop aspectj spring-aop pointcut
Spring AOP vs AspectJ

I am under the impression that Spring AOP is best used for application specific tasks such as security, logging, transactions, …

java spring design-patterns aspectj spring-aop
java.lang.IllegalStateException: No thread-bound request found, exception in aspect

Following is my aspect: @Configurable @Aspect public class TimingAspect { @Autowired private HttpServletRequest httpServletRequest; // Generic performance logger for any mothod private …

java spring spring-mvc aspectj
Spring autowiring using @Configurable

I'm playing with the idea of using Spring @Configurable and @Autowire to inject DAOs into domain objects so that they …

java spring aspectj spring-aop
Spring @Transaction method call by the method within the same class, does not work?

I am new to Spring Transaction. Something that I found really odd, probably I did understand this properly. I wanted …

java spring aspectj spring-aop
Get value of a parameter of an annotation in Java

So I've got a code: @Path("/foo") public class Hello { @GET @Produces("text/html") public String getHtml(@Context Request request, @…

java reflection aspectj
Maven project not being treated as Java in Eclipse

I'm working on a project that has lots of different Maven projects. I've been doing a bunch of JUnit testing …

eclipse maven junit aspectj
Use of proxies in Spring AOP

I am reading a book, which talks about enabling AspectJ support in Spring AOP. Given below is a paragraph taken …

java spring aop aspectj
How to use AOP with AspectJ for logging?

I would like to add "trace" messages to all my public methods as follows: public void foo(s:String, n:…

java logging aop aspectj