[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
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-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
>