3 ms·
Yes. http://eclipse.org/aspectj/doc/released/progguide/index.html http://eclipse.org/aspectj/doc/released/progguide/index.html
by lucifer 17y ago
Yes.
http://eclipse.org/aspectj/doc/released/progguide/index.html http://eclipse.org/aspectj/doc/released/progguide/index.html
- btilly 17y agoThe whole manual isn't exactly a lot of help since I don't know what I am supposed to be looking for in there. As a concrete example, can you walk me through how you can take a function that expects to receive objects of a specific class, and instead give them objects of another class? In particular imagine that you are implementing something like NSProxy, and are replacing objects that had lived locally with distributed objects that now exist on a different machine that you access with remote code calls. The objects have to be usable within a framework that is expecting the original kind of object, and you do not have access to source code or the ability to recompile. Thanks.
- lucifer 17y agoI didn't realize you expected a tutorial in aspect orientation! The gist: byte codes are transformed ("weaved") on load. Its irrelevant whether you have the source or not. http://my.safaribooksonline.com/0596006543/aspectjckbk-CHP-18-SECT-6 http://my.safaribooksonline.com/0596006543/aspectjckbk-CHP-1...
- btilly 17y agoNot necessarily a tutorial. However in response to a specific question I would hope for a specific pointer on how you might do that specific thing. The link you gave me the second time was far more helpful for re-evaluating aspect-oriented programming's capabilities in this regard than the manual. In particular I am now convinced that it can do things that I had not previously realized were possible.
- lucifer 17y agoTheoretically, aspect orientation can even reach inside the code that is being modified: join points can include loops and branches, but aspectJ does not provide that functionality. Anyway, the point that I was making is that virtual method dispatch coupled with virtual machines afford the possibility of models of indirection that are more efficient, more expressive, and formally declarable.