Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] can i inject class anottaion with aspectj ?

So If I understand right I cant inject annotations in each class
declaration. 

But only , types and methods correct me if I wrong 
Thanks for the fast reply 

-----Original Message-----
From: aspectj-users-bounces@xxxxxxxxxxx
[mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Andy Clement
Sent: Sunday, December 02, 2007 1:04 PM
To: aspectj-users@xxxxxxxxxxx
Subject: Re: [aspectj-users] can i inject class anottaion with aspectj ?

aspect X {
  declare @type : org.xyz.model..* : @BusinessDomain ;
}

See declare annotation in the documentation:

http://www.eclipse.org/aspectj/doc/released/adk15notebook/annotations-de
clare.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
>
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users


Back to the top