Re: AspectJ and the Plexus core

Jason van Zyl <[email protected]> 13 Jun 2003 13:04:07 -0400
Newsgroups gmane.comp.java.plexus.devel
Organization Zenplex
Message-ID <[email protected]>
On Fri, 2003-06-13 at 11:32, Pete Kazmier wrote:
> Jason van Zyl <[email protected]> writes:
> 
> > If there are no objections, I will start the work this weekend. I
> > would like AspectJ to be an integral part of Plexus and with the 1.1
> > release of AspectJ I believe there are no downsides.
> 
> +1 I'd love to see more AspectJ.  Right now I have a hard time
> figuring out when and where to use it.  So I'm all for more usage as
> it'll help me learn more.

I think this will give ample means to experiment because you can put
whatever you want into your components.

Once I'm done with the maven plugin I will augment the plexus plugin. I
need this stuff asap so this one won't linger. This will make for a
fully mutable framework where your differences from the core can be
isolated and easily managed. You can basically strategize your mutations
and try each of them by weaving a particular aspect across all your
components.

We can also start making a library of useful aspects for plexus as we
can now store them in JARs for sharing. I would definitely like one for
profiling. I have not tried any runtime weaving and I'm not entirely
sure that has been fully worked out but it will soon come with AspectJ.
But even if you needed different aspects used for a particular runtime
requirement you can work around it by weaving in all the aspects and
using a runtime property to control whether the aspect is used or not.
Basically an if within advice to control the execution of the advice.

> _______________________________________________
> Plexus-dev mailing list
> [email protected]
> http://lists.codehaus.org/mailman/listinfo/plexus-dev
-- 
jvz.

Jason van Zyl
[email protected]
http://tambora.zenplex.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
  
  -- Jacques Ellul, The Technological Society