Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Status of using XML config, as opposed to language-based annotations?

Hi

Let me correct your statement: AspectWerkz is using annotations to
define the aspects, and XML to override the annotation values (thus
you can actually use only xml to define an aspect). AspectJ 1.2 is
using a dedicated language extension. The way you define aspect is not
related to the load time weaving at all.
In AspectJ 5, we will have both annotation style (AspectWerkz like)
and code style (AspectJ 1.2). And we will have xml to control the load
time weaving and refine abstract pointcuts.

The annotation style will indeed be "pure Java" as you wrote though I
am not sure what you mean by "hoping I can add aspects to pointcuts
using pure Java code".

What we will not have in AspectJ 5 that was in AspectWerkz is a way to
define an aspect entirely in XML. The annotation (pure Java 5) will be
mandatory for annotation style, and for prior to Java 5, we are
currently exploring extensions (like our JSR-175 backport
http://backport175.codehaus.org)

You can find more information about that in the AspectJ 5 developer
notebook linked from http://aspectj.org
Alex

On 4/15/05, Karr, David <david.karr@xxxxxxxx> wrote:
> Correct me if I'm wrong, but I believe one of the basic differences
> between Aspectwerkz and AspectJ is that the former uses an XML file for
> configuring the pointcuts and aspects, but the latter uses
> language-based annotations for specifying the pointcuts.  I believe the
> fact that Aspectwerkz uses an XML file for pointcut specifications helps
> to facilitate its ability to do load-time weaving of third-party libs.
> 
> As AspectJ moves forward with integrating features of Aspectwerkz, will
> it have the ability to specify the aspect integration entirely in an XML
> file, without requiring language extensions?  I'm hoping I can add
> aspects to pointcuts using pure Java code.  Will this be feasible with
> the final AspectJ 5.0?
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>


Back to the top