Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Annotations injection on types based on methods annotations

I can't think of a way to do that.

http://www.eclipse.org/aspectj/doc/next/adk15notebook/annotations-declare.html

shows that you can say something like

  declare @type : org.xyz.model..* : @BusinessDomain ;

But it takes a type pattern ("org.xyz.model..*").

Wes

On Sat, 09 Sep 2006 20:08:15 +0100
 Paulo Alexandre Corigo Zenida <paulo.zenida@xxxxxxxx>
wrote:
> Hi all,
> 
> I have searched for examples on google and tried lots of
> ways but I did not have success.
> Therefore, I would like to ask to the community of
> AspectJ if it is possible to do ITD
> for annotations on types, based on the type methods. I
> would like to make a type T be
> annotated with an annotation MyAnnotation based on
> annotated methods for that type T.. I
> would like to write something like:
> 
> declare @type : (@MyAnnotation * *..`.(..)) :
> MyAnnotation;
> 
> Is this possible to achieve with AspectJ?
> 
> Thanks for your interest,
> 
> Paulo Zenida
> 
>
----------------------------------------------------------------
> Mensagem enviada usando o IMP (Internet Messaging
> Program).
> 
> 
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users



Back to the top