Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-dev] asm - advice relations

Try this:
- check out docs/sandbox/api-clients as a project
- run org.aspectj.samples/AsmRelationshipMapUsageTest

You should see a bunch of "method.. advised by.." messages printed to the
console.  Now modify the test to run with your AsmHierarchyBuilder and see
if you still get the console output.  If you don't, you're using the
hierarchy builder in a way that prevents the AsmRelationshipProvider from
setting up the relationship map properly.  To address that your hierarchy
builder should ensure that it doesn't override the corresponding behavior on
the AsmHierarchyBuilder super type.

Mik

> -----Original Message-----
> From: aspectj-dev-bounces@xxxxxxxxxxx [mailto:aspectj-dev-
> bounces@xxxxxxxxxxx] On Behalf Of e3oginos X
> Sent: Thursday, June 30, 2005 7:15 AM
> To: aspectj-dev@xxxxxxxxxxx
> Subject: [aspectj-dev] asm - advice relations
> 
> hi
> i am implementing a project which registers its own AsmHierarchyBuilder,
> and builds its own model of the aspectj project without ever using the
> default AsmHierarchyBuilder.
> Everything works ok, but i cant seem to find a way to get the relationship
> of which methods an aspect advices (like 'advices' in the RelationshipMap)
> and which  aspect a method is adviced by (like 'is adviced by' in the
> RelationshipMap)
> i've seen how the 'uses pointcut' relationship is build from the default
> AsmHierarchyBuilder, but i cant seem to locate where the 'adviced by'
> relationship is generated in the ajdt source code.
> 
> can someone tell me how i can get the 'adviced by/advices' relations
> without ever  using the RelationshipMap (since i am not using the default
> asmhierarchybuilder) or point me to the source code that generates this
> relations?
> 
> thanks
> 
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today it's FREE!
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> 
> _______________________________________________
> aspectj-dev mailing list
> aspectj-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-dev



Back to the top