Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-dev] Support for runtime-unweaving?

Hi Eric!

Using OSGi and Equinox Aspects you can do something like runtime unweaving
by uninstalling the aspect bundle, for example. This results in a reload
of the target bundle (so no hotswap, just general classloading) and
therefore no real runtime weaving, but if your system is a good dynamic
OSGi system, it feels a lot like runtime weaving.

Just some thoughts...

Cheers,
-Martin


> Hello.
>
> Since AspectJ supports load-time weaving using an agent, I was
> wondering if one could use redefineClasses(..) to actually "un-weave",
> or at least disable advice applications at runtime. See here for a
> definition of this method: http://tinyurl.com/p63vep
>
> As far as I can see one may only replace method bodies but that should
> be enough to un-weave advice applications, should'n it? Are there any
> plans to support this in the near future?
>
> Eric
>
> --
> Eric Bodden
> Sable Research Group, McGill University
> Montréal, Québec, Canada
> _______________________________________________
> aspectj-dev mailing list
> aspectj-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-dev
>
>
>



Back to the top