[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[aspectj-users] @AspectJ style pointcut expression
|
- From: "Eiichiro Uchiumi" <eiichirouchiumi@xxxxxxxxxxx>
- Date: Tue, 4 Apr 2006 00:54:24 +0900
- Delivered-to: aspectj-users@eclipse.org
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=yj20050223; d=yahoo.co.jp; b=SLodavEFR/JOs3/x1vwWcmmK7MztlzAQ41O7M/ddC9ZVNqF/hqHhiL21YPPDxFXFBcEhsh/rPMTC01YSuNqxXtNv8+KAOGiDsmA07i2hB1ZinZ2lQMK9lBikioHU+PWK ;
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