Top "Aop" questions

AOP stands for Aspect-Oriented Programming.

Spring AOP pointcut that matches annotation on interface

I have a service class implemented in Java 6 / Spring 3 that needs an annotation to restrict access by role. I have …

java spring aop aspectj pointcut
Why doesn't AspectJ compile-time weaving of Spring's @Configurable work?

Update 5: I've downloaded the latest Spring ToolsSuite IDE based on the latest Eclipse. When I import my project as a …

java maven aop spring-aop compile-time-weaving
AOP Exception Handling

I see that Guice and Spring use AOP Alliance under the hood for method interceptions, and I've been trying to …

java exception-handling aop
Spring AOP - why do i need aspectjweaver?

i wrote a very simple Aspect with Spring AOP. It works, but i have some problems understanding what is really …

java spring aop aspectj spring-aop
java.lang.IllegalArgumentException: error at ::0 formal unbound in pointcut

Thinker.java package springdemo2; public interface Thinker { void thinkOfSomething(String thoughts); } Volunteer.java package springdemo2; public class Volunteer implements Thinker{ …

spring aop spring-aop
Getting the java.lang.reflect.Method from a ProceedingJoinPoint?

The question is short and simple: Is there a way to get the Method object from an apsectj ProceedingJoinPoint? Currently …

spring jakarta-ee aop aspectj spring-aop
Uncatchable ChuckNorrisException

Is it possible to construct a snippet of code in Java that would make a hypothetical java.lang.ChuckNorrisException uncatchable? …

java exception exception-handling aop
How to specify single pointcut for multiple packages

I am using Aspect for logging activities in my spring mvc based application. I am using @controller annotations to define …

spring aop spring-aop pointcut aspect
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 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