Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Aspect J classloader agent




Mathieu,

I'm not quite sure what your requirement is. Is it that you have a series
of tests each one to drive the same classes/application but with a
different set of aspects? If so there are 2 ways to achieve this: 1) use a
cflow pointcut to ensure each aspect is only active for the appropriate
test (see section 11.4.2 in Eclipse AspectJ), or 2) load each testcase with
a new classloader giving you the opportunity to define a new set of
aspects. The latter is "purer" but more complex but is something we are
exploring for the AspectJ test suite so one day you may get it for free!

Matthew Webster
AOSD Project
Java Technology Centre, MP146
IBM Hursley Park, Winchester,  SO21 2JN, England
Telephone: +44 196 2816139 (external) 246139 (internal)
Email: Matthew Webster/UK/IBM @ IBMGB, matthew_webster@xxxxxxxxxx
http://w3.hursley.ibm.com/~websterm/

Mathieu LEMAIRE <mlemaire@xxxxxxx>@eclipse.org on 03/10/2005 08:44:56

Please respond to aspectj-users@xxxxxxxxxxx

Sent by:    aspectj-users-bounces@xxxxxxxxxxx


To:    ML aspectj <aspectj-users@xxxxxxxxxxx>
cc:
Subject:    [aspectj-users] Aspect J classloader agent


Hie,

I'm pretty newbie in AspectJ and haven't begun coding yet.
I want to use aspects to profile our program's performances using
aspectJ's classloading-time feature. It seems really interesting because
we would not have to recompile everithing each time, thus making aspects
"hot plugged"...

However, using JUnit to trigger a series of tests, we only have one
start of the JVM ; therefore we cannot change the set of aspects from
one test to the other..
Is there anything I can do at runtime to change my aspects configuration
and redo classloading ?

Thank you for any advice ;)

--
Mathieu

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users




Back to the top