[aosd-discuss] Any AOP implementations using VM-hooks?
Andreas Frei
frei at inf.ethz.ch
Mon Jan 26 03:28:22 EST 2004
Eric,
I know some parts of PROSE quite well. Weaving can be done at the moment
as a before and after pointcut. Sure there are also others like cflow
and field modifications.
Unfortunately the method replacement you are looking for is currently
not implemented in Prose, but it could also be done in the JVMDI.
Wool has a hybrid approach they use breakpoint weaving, which is excatly
the same as Prose. Additional Wool supports method replacement by using
the method class_redefine in the JDI. The hybrid approach allows to
choose breackpoint weaving for before/after pointcuts but also replacing
the method body and including the before/after aspect-advice or eaven
replace the body by a dispatcher.
cheers,
Andreas
> -----Original Message-----
> From: Eric Bodden [mailto:eric at bodden.de]
> Sent: Montag, 26. Januar 2004 09:10
> To: 'Andreas Frei'
> Subject: RE: [aosd-discuss] Any AOP implementations using VM-hooks?
>
>
> Hi and thanks a lot!
>
> However I am searching especially for completely non-weaving
> approaches (meaning implementations that just somehow forward
> the method dispatch - the idea is taken from LISP where you
> can just "exchange" method implementations dynamically). So
> just for the case that you've got more information on that...
> would be great if you kept me informed.
>
> Cheers,
> Eric
>
>
> Andreas Frei <mailto:frei at inf.ethz.ch> wrote:
>
> > Hi Eric
> >
> > I know of two projectw which are using the JPDA to weave aspets at
> > runtime without modiving the jvm.
> >
> > PROSE:
> > -----
> > http://prose.ethz.ch, this one uses the jvmdi, on each
> joinpoint the
> > debugger will execute code which has been identified in the
> > aspect-advice.
> >
> > paper: Just In Time Aspects: Efficient Dynamic Weaving for Java;2nd
> > Intl. Conf. on Aspect-Oriented
> > Software Development, Boston, USA; A. Popovici and G.
> Alonso and
> > T. Gross
> >
> > Wool:
> > ----
> > paper: Workshop on Advancing the State of the Art in
> > Runtime Inspection (ASARTI), ECOOP'03 (Shigeru Chiba, Yoshiki Sato,
> > and Michiaki Tatsubori)
> > A Selective, Just-in-Time Aspect Weaver; Proceedings of
> > the 2nd International Conference on Generative Programming and
> > Component Engineering (GPCE '03); Yoshiki Sato and Shigeru
> Chiba and
> > Michiaki Tatsubori
> >
> > for this one I couldn't find an open source
> > implementation, but Chiba et al. uses in their
> implementation the JDI
> > (the highest layer of the JPDA.
> >
> >
> > cheers,
> > Andreas
> >
> >
> >
> >> -----Original Message-----
> >> From: discuss-bounces at aosd.net
> [mailto:discuss-bounces at aosd.net] On
> >> Behalf Of Eric
> Bodden
> >> Sent: Sonntag, 25. Januar 2004 19:13
> >> To: discuss at aosd.net
> >> Subject: [aosd-discuss] Any AOP implementations using VM-hooks?
> >>
> >>
> >> Hi altogether.
> >>
> >> I was just wondering if there are any approaches out there that
> >> implement AOP based solutions by implementing hooks in a virtual
> >> machine for "firing" advice on joinpoints. I have seen the work
> >> "Just-In-Time" Java, however that reduces to something similar to
> >> load-time weaving. The only difference seems to be that weaving is
> >> performed by a modified JIT.
> >>
> >> Or am I missing some point that even makes such an implementation
> >> impossible?
> >>
> >> Thank in advance,
> >> Eric
> >>
> >> --
> >> Eric Bodden
> >> Aachen University of Technology (RWTH)
> >> ICQ UIN: 12656220
> >> Website: http://www.bodden.de
> >> PGP key: http://www.bodden.de/pub_key.asc
> >>
> >>
> >>
> >>
> >> __________________________________________________
> >> AOSD Discuss mailing list - discuss at aosd.net
> >> To unsubscribe go to http://aosd.net
>
> --
> Eric Bodden
> Aachen University of Technology (RWTH)
> ICQ UIN: 12656220
> Website: http://www.bodden.de
> PGP key: http://www.bodden.de/pub_key.asc
>
>
>
>
More information about the discuss
mailing list