jxie@leeonsoft.com (12) [Avatar] Offline
#1
How do I implement "declare parents: MessageCommunicator implements AccessTracked" based on call stack? For instance, when MessageCommunicator is called from class A, I want to use aspected MessageCommunicator. Otherwise, I want to use original MessageCommunicator.


Jim
ramnivas (171) [Avatar] Offline
#2
Re: dynamically implement an interface based on call stack
You cannot use dynamic characteristics to implement an interface. However, you may be able to implement your use case through a combination of static crosscutting (declare parents, for example) and a cflow-based pointcut (described in chapter 3).

-Ramnivas
jxie@leeonsoft.com (12) [Avatar] Offline
#3
Re: dynamically implement an interface based on call stack
Thank you very much. I am just one chapter away now. I am glad to hear I can implement this feature.

Jim