Re: CGLib help

From: Jeff Genender (jgenende..pache.org)
Date: Thu May 04 2006 - 21:19:59 EDT

  • Next message: Andrus Adamchik: "Re: CGLib help"

    Hi Andrus,

    I would be honored to help out...as I think Bill would too...

    Is how you described it the full issue?

    Jeff

    Andrus Adamchik wrote:
    > I need some help with CGLib. It is great for proxies, but our enhancer
    > changes the actual class instead of making a proxied subclass. Such
    > scenario is a pain... Maybe Jeff or someone else has an idea how to
    > implement the enhancing code below?
    >
    > Basically I am trying to inject code calling a static delegate method in
    > three places:
    >
    > 1. Property getter start: DataObjectDelegate.beforeGetProperty
    > 2. Property setter start: DataObjectDelegate.beforeSetProperty
    > 3. Property setter end: DataObjectDelegate.afterSetProperty
    >
    > I was able to implement a simpler case of creating synthetic properties
    > with getters and setters (InterfaceMethodInjector), but got stuck with
    > this one (see TODO's on the DataObjectAccessorInjector). I suspect we'll
    > have to use ASM for that, but if anyone can figure a CGlib solution,
    > please let me know.
    >
    > Andrus



    This archive was generated by hypermail 2.0.0 : Thu May 04 2006 - 21:20:11 EDT