Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Is it possible to abstract away the subject type in the declare parents statement?

Hi,

At the moment, no.  What you need are named type patterns, which
aren't implemented yet.  I thought we had an open bugzilla for it -
but I can't quite find it right now...  They would provide exactly
what you describe.

typepattern foo(): @LogMe *;
(or 'abstract typepattern foo();')

then

declare parents: foo() implements Serializable;

cheers,
Andy

On 7 December 2011 11:43, Mark <mark.kharitonov@xxxxxxxxx> wrote:
> Consider the following abstract aspect:
>
>
> Is it possible to abstract (@LogMe *) away, behind a type pattern
> declaration, that could be overridden in a derived aspect?
>
> --
> View this message in context: http://aspectj.2085585.n4.nabble.com/Is-it-possible-to-abstract-away-the-subject-type-in-the-declare-parents-statement-tp4170237p4170237.html
> Sent from the AspectJ - users mailing list archive at Nabble.com.
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users


Back to the top