Reading annotation property in aspect

Posted by Lukasz Koniecki on Stack Overflow See other posts from Stack Overflow or by Lukasz Koniecki
Published on 2010-03-23T12:10:31Z Indexed on 2010/03/23 12:13 UTC
Read the original article Hit count: 328

Filed under:
|
|

How to read annotation property value in aspect?

I want my Around advice to be executed for all joint points annotated with @Transactional(readonly=false).

@Around("execution(* com.mycompany.services.*.*(..)) "
+ "&& @annotation(org.springframework.transaction.annotation.Transactional)")
public Object myMethod(ProceedingJoinPoint pjp) throws Throwable {
}

© Stack Overflow or respective owner

Related posts about spring

Related posts about aspectj