Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Type pattern with annotation value checks

Thank you very much!

On Mon, Mar 3, 2008 at 11:55 AM, Ramnivas Laddad <ramnivas@xxxxxxxxxxxxxxx> wrote:
Check out the very latest AspectJ 1.6.0m2 (http://www.eclipse.org/aspectj/doc/released/README-160.html). The annotation value feature might just do the trick for you.

-Ramnivas

On Sun, Mar 2, 2008 at 6:05 PM, Vladimir Tsukur aka _flush_dia_ <flushdia@xxxxxxxxx> wrote:
Hello,

May the type pattern declare a check for annotation value?

Let's say we have following class definitions:

@SupportsVersioning(isRoot = true)
public class Configuration {
    ...
}

@SupportsVersioning(isRoot = false)
public class Setting {
    ...
}

And declare parents statement must be applied for classes which are annotated with @SupportVersioning annotation having isRoot = true, but not for those which have the value of isRoot set to false.
Is there a way to achieve this?

It seems like presence of annotation may be analysed, but not its values, but I may be wrong.
If there is no workaround for this problem I'll create two distinct parameterless annotations: one for roots and another one for non-roots.

Thank you in advance.
--
Yours faithfully,
Tsukur Vladimir aka _flush_dia_
_______________________________________________
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




--
Yours faithfully,
Tsukur Vladimir aka _flush_dia_

Back to the top