krysalis-version and AspectJ
"Anou Manavalan" <[email protected]>
| Newsgroups | gmane.comp.krysalis.sandbox |
|---|---|
| Message-ID | <[email protected]> |
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. regards, -Anou _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf