Re: krysalis-version and AspectJ

Nicola Ken Barozzi <[email protected]>
Newsgroups gmane.comp.krysalis.sandbox
Organization Apache Software Foundation
Message-ID <[email protected]>

Anou Manavalan wrote, On 03/03/2003 21.18:
> Hi Everyone,
> 
> I was looking at AspectJ and playing with some samples. It is an 
> interesting concept and seemed like Version will be able to use it.
> 
> If a developer wishes to make an existing class "Versionable" - then it 
> can be achieved by a simple aspect that can make that class implement 
> the "Versionable class" and introduce the version and the getVersion / 
> setVersion methods.
> 
> I tried a sample and added it to the CVS under src\optional dir. I also 
> added the class dir which had the aspectJ compiled "VersionGridView" 
> class. If you decompile, you should be able to see that the apect has 
> introduced those methods.
> 
> The problem I see with this is -- People who are familiar with aspectJ 
> can only use it -- but it could be an additional package.
> 
> Comments / Suggestions please.

IMHO AspectJ is still for many respects a nice concept with not yet a 
really viable programming model. I tend to like aspects in code instead 
of with precompilation.

Tha said, as long as AspectJ is not a requirement, but just an extra 
feature, exactly as you suggest, I'd be totally positive WRT this piece 
of code :-)

-- 
Nicola Ken Barozzi                   [email protected]
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------



-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
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.