[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-users] Matching methods in a different module?
|
- From: Andrew Eisenberg <andrew@xxxxxxxxxxxx>
- Date: Sat, 18 Jul 2009 20:43:02 -0700
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:reply-to:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; bh=YWQG7diFiiVx88M38ViTYw6x8aq54yqtyQPgeitq9Io=; b=xQ9epXhljBdkWQBaOWi4lfdQOLHHsucM5DuWAoGrWwr/hAnGUE1rbW7ILlK0iACxGc sLa+02XV6gsh4rloj5apMB8TNg4dxo+lZo4/IenwO/JOvOWaTeKXotIml045US82UzKA MJeqtpdc/2deHo5K5vt9qITHXayQ2IUdYk5dA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=KBJp8jZXo1tm61M65743mcPUpT7T3H0/3yBxd3qUZ7vqEkU4Olgee1s4QrOu45Zy3Q 97hq4X2i2NAHSzkHNa3v3ukn2cu7iFONewdr5zRN3/OhvRiUflt5eFA9XasQ3ZD0kUlX 0/ISHqPI9ZL3Hj4Y0XDQV07KsRq8H9CWthsl8=
Module B must be on Module A's Aspect path. You can set this in the
project properties page. However, since you are using maven, things
get a little trickier because maven also needs to understand what goes
on the aspect path.
You can take a look here for a bit about maven-aspectj/eclipse/ajdt integration.
2009/7/18 Eugeny N Dzhurinsky <bofh@xxxxxxxxxxx>:
> Hello!
>
> I am developing some multi-module project (maven-driven, if that matters). I
> do have the module A, which holds the definitions and implementations of DAO.
> In the module B there is a need to apply some advices to certain methods of
> the DAO objects.
>
> When I define an aspect in the module A, AJDT does report the correctness of
> the pointcut expression, and it reports the advised methods as well.
>
> However when I move the aspect to the module B - AJDT complains it can't find
> advised methods.
>
> Module A and module B are the projects in the workspace. Module B depends on
> module A. Both of these modules have the AspectJ capability enabled.
>
> So the question is - does AJDT tracks the classes, defined in the different
> project, which is the one the current project holding an advice depends on?
>
> --
> Eugene N Dzhurinsky
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>