Re: Scope of AOP..

Pascal Costanza <[email protected]>
Newsgroups gmane.comp.programming.aspect.general
Message-ID <[email protected]>
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:[email protected], http://p-cos.net
Vrije Universiteit Brussel, Programming Technology Lab
Pleinlaan 2, B-1050 Brussel, Belgium





__________________________________________________
AOSD Discuss mailing list    -    [email protected]
To unsubscribe go to http://aosd.net

Check out the AOSD.net Wiki: http://aosd.net/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.