[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] @AspectJ style pointcut expression

Hi, all

I have a question about pointcut expression with @AspectJ style.
I want to pick up the join point that method invocation for annotated interface only.
(Method invocation for interface only, not for interface implementation class)


Please check following code...

@Service
public interface SomeService {

public Object doService();

}

public class SomeServiceImpl implements SomeService {

public Object doService() {
 return new Object();
}

}

public class ServiceClient {

private SomeService someService;

private SomeServiceImpl someServiceImpl;

public void useService() {
 someService.doService();  <- Match
 someServiceImpl.doService(); <- NOT match
}

}

How do I express to this pointcut with @AspectJ style?

Thanx!
Eiichiro UCHIUMI Tokyo/Japan