pointcut

Spring AOP pointcut that matches annotation on interface

Hello, this is my first post here, so I apologize in advance for any stupidity on my side. I have a service class implemented in Java 6 / Spring 3 that needs an annotation to restrict access by role. I have defined an annotation called RequiredPermission that has as its value attribute one or more values from an enum called OperationT...

Define pointcut to capture an interface but not parent or sub interfaces

I was wondering how to define a pointcut in aspecJ the captures any method of an interface but not the methods of any parent or sub interface. pubic interface A { void methodA(); } pubic interface B extends A { void methodB(); } pubic interface C extends B { void methodC(); } I would like a poincut that only catches methodB() an...

AspectJ join point with simple types

Hi! Are there defined join points in arithmetics that I can catch? Something like: int a = 4; int b = 2; int c = a + b; Can I make a pointcut that catches any one of those lines? And what context will I be able to get? I would like to add a before() to all int/float/double manipulation done in a particular method on a class, is tha...

using spring aop pointcut getting error although i had added aspectjrt.jar also

Not able to solve this problem Error : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found at org.apache.catalina.core.ContainerBase.addChildInternal(Co...