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.

Spring autowired bean for @Aspect aspect is null

I have the following spring configuration: <context:component-scan base-package="uk.co.mysite.googlecontactsync.aop"/> <bean name="simpleEmailSender" …

java spring aop aspectj spring-aop
Spring + AspectJ weaving for java 8 using aspectj-maven-plugin

I'm migrating my project from java 7 to java 8 and the problem I have is related to aspectj weaving using aspectj-maven-plugin. …

java spring aspectj java-8 aspectj-maven-plugin
spring 3.0 aop Pointcut is not well-formed: expecting 'name pattern' error

The following is my pointcut and advise declaration //PointCut on A method which takes two parameters and is in a …

java spring aop aspectj spring-aop
Unit testing Spring @Around AOP methods

I can unit test most of my Spring classes without needing to do Spring "stuff". I can unit test @Before …

spring aop aspectj
AspectJ "around" and "proceed" with "before / after"

Let's say you have three advices: around, before and after. 1) Are before/after called when proceed is called in the …

java aop aspectj
AspectJ pointcuts - get a reference to the joinpoint class and name

I am using the @AspectJ style for writing aspects, to handle logging in our application. Basically I have a pointcut …

logging aop aspectj
How to enable aspectj compile time weaving with Java 7 and maven

I have a project which currently works with java 6 and compile time weaving. We use the following pom to enable …

java maven aspectj
Getting a return value or exception from AspectJ?

I am able to get the signature and arguments from advised method calls, but I cannot figure out how to …

exception return aspectj pointcut
Spring AOP Advice on Annotated Controllers

I am trying to use AOP to do some processing after an annotated controller. Everything is running with no errors, …

java spring spring-mvc aop aspectj
Spring's LoadTimeWeaver Agent not starting up

I'm attempting to implement Load time weaving using Spring and AspectJ. To the best of my knowledge I have everything …

spring aop aspectj load-time-weaving