[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-users] can i inject class anottaion with aspectj ?
|
- From: "Andy Clement" <andrew.clement@xxxxxxxxx>
- Date: Sun, 2 Dec 2007 11:04:01 +0000
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=JQ5uBpLo07qr32nMnEPFarofRNSWgIfBJrMkEGdXvik=; b=FgDA0PvUKAFAssJh+AswiUhV1xDRoH+C1g9Q17ES69nnwGE8P0ofTqdXaOX4xnHttgQmA925fHMC0GW8SdzJLmfFi7aFuW3RJPjaHAuaAXDqK4nDuXPHgccoudlRAn7BYAei4pn6xCFII/6qwZ5TEb33PU4x5Q3mxbd2JXYMJbw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Sb86vrt6PYbGpArkCCIPIkdqVN7E+thjDI6d7ZcycBCcFo2KHyEKuIF9qbR8xdPrfbihyZKnTvOGcNyEUE6Aj5Xe6zPxdXsuuTMjV195DHpQhGRy/Z/OmKZLyF07CMKF3rFb0uGrdTx+hlaUSPMstbrjhzNBdQQANPTzhnUSpKM=
aspect X {
declare @type : org.xyz.model..* : @BusinessDomain ;
}
See declare annotation in the documentation:
http://www.eclipse.org/aspectj/doc/released/adk15notebook/annotations-declare.html
Also, under https://bugs.eclipse.org/bugs/show_bug.cgi?id=86818 I am
finishing support for something like this:
declare @type: hasmethod(* someRandomMethod()): @SomeAnnotation;
There is some basic support for this hasMember support in the codebase
already (see that bug report) but it is not yet complete.
Andy
On 02/12/2007, Meir Yanovich <meiry@xxxxxxxxxxxx> wrote:
> Hello all
> I need to write annotation in every class I write , that is I need to
> insert annotations to something like 120 class
> Can I inject it with aspectj ?
> For example:
> Every class have look like this :
>
>
> @myAnnotation(some=value)
> Public class A}
> ...
> ...
> A(){}
> ....
> ..
>
>
> {
>
> Can this annotation be injected to every of my class's?
>
> Thanks
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>