Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ajdt-dev] Load-Time weaving questions

Thank you Matthew.

You're saying 
"This mechanisms ensures that all classes loaded by a
classloader are woven with the same constant set of
aspects (very important)."

This means that aspects provided to classloader weaves
class A and then when loading class B you can not
change the set of spects to weave class B? ... even if
aspects are already loaded by ExtensionClassLoader
(for example) ? ... why aspects need to remain
constant?

Regards,
Marius

--- Matthew Webster <matthew_webster@xxxxxxxxxx>
wrote:

> 
> 
> 
> 
> Marius,
> 
> The interface you need is
> org.aspectj.weaver.loadtime.Aj in the "loadtime"
> project (no examples yet). You cannot replace
> aop.xml yet but I can imagine
> supplying Aj with a "provider" interface allowing
> you to programmatically
> determine the set of aspects to be woven. This
> mechanisms ensures that all
> classes loaded by a classloader are woven with the
> same constant set of
> aspects (very important).
> 
> 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/
> 
> Marius Danciu <mdanciusv@xxxxxxxxx>@eclipse.org on
> 19/08/2005 14:05:02
> 
> Please respond to AspectJ Development Tools
> developer discussions
>        <ajdt-dev@xxxxxxxxxxx>
> 
> Sent by:    ajdt-dev-bounces@xxxxxxxxxxx
> 
> 
> To:    ajdt-dev@xxxxxxxxxxx
> cc:
> Subject:    [ajdt-dev] Load-Time weaving questions
> 
> 
> I've been using load-time weaving with AspectJ5 M2
> and
> it worked great.
> 
> Is there any way of doing this programatically? ...
> What I mean is if you use
> org.aspectj.weaver.WeavingURLClassLoader as system
> class-loader, that should be ok using it
> programatically just to load certain classes at
> runtime, right? ... furthermore is there any API
> exposed that you can use to replace aop.xml role?
> something like using WeavingURLClassLoader to load
> class A and use a certain aspect or aspects to weave
> the bytecode of class A...
> 
> Thank you so much,
> Marius
> 
> 
> 
> ____________________________________________________
> Start your day with Yahoo! - make it your home page
> http://www.yahoo.com/r/hs
> 
> _______________________________________________
> ajdt-dev mailing list
> ajdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/ajdt-dev
> 
> 
> _______________________________________________
> ajdt-dev mailing list
> ajdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/ajdt-dev
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Back to the top