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.

JUnit tests for AspectJ

I am trying to write Junit tests for Custom Aspect. Here is the Aspect Class Snippet: @Aspect @Component public class …

java junit mockito aspectj spring-aop
Spring AOP with AspectJ: Load time weaving

If I'm using AspectJ based Spring AOP, am I then tied to configuring my aspects to use load time weaving? …

spring aop aspectj load-time-weaving
Aspectj in spring

I am getting the following error when i try to auto wire aspectj in spring org.xml.sax.SAXParseException: The …

java spring aop aspectj spring-aop
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 …

java annotations aop aspectj
Maven: compile aspectj project containing Java 1.6 source

Primary Question What I want to do is fairly easy. Or so you would think. However, nothing is working properly. …

java maven-2 aop aspectj
Spring: Is CGLIB required for injection of a concrete class using @Resource

I have configured Spring 3.0.6 with AspectJ LTW using spring-instrument.jar and: <context:load-time-weaver aspectj-weaving="on" weaver-class="org.springframework.instrument.…

java spring aspectj cglib load-time-weaving
AspectJ pointcut for annotated PRIVATE methods

I want to create a Pointcut for private methods that are annotated with a specific annotation. However my aspect is …

spring aop aspectj spring-aop
Using AspectJ logging without Spring

I have just working on an old application which has poor log or no logs. It does not implement Spring …

java spring aspectj
Spring AOP: @annotation(annotation)

I am (of course) trying to maintain a project using many constructs I don't know that well. In the course …

java spring annotations aspectj aop
Error when using AspectJ AOP with Java 7

I've updated Java to version "1.7.0_09-icedtea" (previously it was 1.6) and get the following message: Instantiation of bean failed; nested exception …

spring aspectj java-7