[aosd-discuss] Scope of AOP..
Pascal Costanza
pc at p-cos.net
Thu Apr 6 15:30:55 EST 2006
On 6 Apr 2006, at 21:57, Anil Pathak wrote:
> Newbie in this topic. I have some sort of stupid wish.
>
> Can we tweak how the methods are called. May be instrumenting
> objects and
> method calls in runtime. And some sort of utility Class having
> function as
>
> CallStach [] getCallStack( Thread thread )
>
> Where each elements in the CallStack[] represent the objects or the
> classes involved on calling finally the aspect code.
>
> I suppose core of the topic is having acess to the scope to the method
> that generated the ( MyLogger.debug("Some debug statement"))
What you wish for is available in a pretty straightforward way in
Smalltalk: The call stack is a available as a linked list of objects
representing stack frames, and the method tables are available as
data structures as well. Method wrappers allow you to replace method
table entries by, well, wrapping methods. For example, AspectS is
built on top of these constructs.
Pascal
--
Pascal Costanza, mailto:pc at p-cos.net, http://p-cos.net
Vrije Universiteit Brussel, Programming Technology Lab
Pleinlaan 2, B-1050 Brussel, Belgium
More information about the discuss
mailing list